/* Review overlay styles: panel, comment pins, composition, wireframes and responsive controls.
 * Keep this stylesheet after styles.css; its layers must sit above the portal. */
.main {
  position: relative;
}
#modalHost .modal,
.support-overlay .help-dialog {
  position: relative;
}
.review-admin-trigger {
  position: fixed;
  left: 290px;
  bottom: 16px;
  z-index: 35;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #cbd5df;
  border-radius: 24px;
  background: #fff;
  color: #17375f;
  box-shadow: 0 3px 12px rgba(16, 36, 74, 0.16);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.review-admin-trigger:hover {
  background: #f3f7fa;
  border-color: #8ea4ba;
}
.review-admin-trigger:active {
  background: #e7eef4;
}
.review-admin-trigger:focus-visible,
.review-admin-panel :focus-visible,
.review-compose :focus-visible {
  outline: 2px solid #1b96ff;
  outline-offset: 2px;
}
.review-trigger-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.review-trigger-icon svg,
.review-add-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-open-count {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eff6;
  color: #17375f;
  font-size: 11px;
  font-weight: 700;
}
.review-admin-panel {
  position: fixed;
  left: 290px;
  bottom: 68px;
  z-index: 61;
  width: min(440px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #d1dae4;
  border-radius: 8px;
  background: #fff;
  color: #17233c;
  box-shadow: 0 10px 36px rgba(15, 35, 63, 0.24);
  font-size: 13px;
}
.review-panel-head,
.review-compose > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.review-eyebrow {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.review-panel-head h2,
.review-compose h2 {
  margin: 1px 0 0;
  color: #17233c;
  font-size: 20px;
  line-height: 1.25;
}
.review-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #52657d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.review-close:hover {
  background: #f1f4f7;
}
.review-field-label,
.review-compose label {
  display: block;
  margin: 0 0 -5px;
  color: #41546b;
  font-size: 12px;
  font-weight: 650;
}
.review-select {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #aebdcd;
  border-radius: 4px;
  background: #fff;
  color: #17233c;
  font: inherit;
}
.review-context {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #5680a6;
  border-radius: 2px;
  background: #f4f7fa;
  color: #53647b;
  font-size: 11px;
  line-height: 1.4;
}
.review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}
.review-section-head h3 {
  margin: 0;
  color: #17233c;
  font-size: 14px;
}
.review-export-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #155c98;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.review-export-link:hover {
  color: #093c6a;
}
.review-type-pickers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.review-type-choice {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #d9e0e7;
  border-radius: 4px;
  background: #fff;
  color: #34475c;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.review-type-choice:hover {
  background: #f5f7f9;
}
.review-type-choice.selected {
  border-color: currentColor;
  background: #f5f8fb;
  font-weight: 700;
}
.review-type-dot,
.visibility-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.review-type-choice.blue,
.visibility-dot.blue,
.review-pin.blue,
.review-comment.blue {
  --review-color: #175d98;
  --review-soft: #eaf3fb;
  --review-border: #c8dced;
}
.review-type-choice.amber,
.visibility-dot.amber,
.review-pin.amber,
.review-comment.amber {
  --review-color: #915300;
  --review-soft: #fff4df;
  --review-border: #efd8a7;
}
.review-type-choice.teal,
.visibility-dot.teal,
.review-pin.teal,
.review-comment.teal {
  --review-color: #08735f;
  --review-soft: #e4f5f0;
  --review-border: #b9e2d5;
}
.review-type-choice.blue,
.review-type-choice.amber,
.review-type-choice.teal {
  color: var(--review-color);
}
.review-add-button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #194b7d;
  border-radius: 4px;
  background: #194b7d;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.review-add-button:hover {
  background: #123c68;
}
.review-adding-hint {
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fff4df;
  color: #6f4708;
  font-size: 11px;
  line-height: 1.4;
}
.review-visibility {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid #e4e9ee;
  border-bottom: 1px solid #e4e9ee;
  color: #53647b;
  font-size: 11px;
}
.review-visibility strong {
  width: 100%;
  color: #273b54;
  font-size: 11px;
}
.review-visibility label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  cursor: pointer;
}
.review-visibility input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #194b7d;
}
.review-scope-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e1e7ed;
}
.review-scope-tabs [role="tab"] {
  min-height: 34px;
  padding: 5px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5a6b80;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.review-scope-tabs [role="tab"][aria-selected="true"] {
  border-color: #194b7d;
  color: #163e6a;
}
.review-scope-tabs .review-export-link {
  margin-left: auto;
}
.review-comment-list {
  min-height: 68px;
  max-height: 38vh;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 2px;
}
.review-comment {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--review-border);
  border-left: 4px solid var(--review-color);
  border-radius: 4px;
  background: var(--review-soft);
}
.review-comment.is-complete {
  opacity: 0.74;
}
.review-comment-top,
.review-comment-byline,
.review-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.review-type-label {
  color: var(--review-color);
  font-size: 10px;
  font-weight: 750;
}
.review-comment-page {
  overflow: hidden;
  color: #68788b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-comment-body {
  margin: 7px 0;
  color: #28394d;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-comment-byline {
  justify-content: flex-start;
  color: #68788b;
  font-size: 10px;
}
.review-comment-byline strong {
  color: #31465e;
  font-size: 11px;
}
.review-comment-actions {
  justify-content: flex-end;
  margin-top: 7px;
}
.review-comment-actions button {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #175d98;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.review-comment-actions button:hover {
  border-color: #b9c8d7;
  background: #fff;
}
.review-comment-actions .review-delete {
  color: #a22d3e;
}
.review-comment-actions .review-delete.armed {
  border-color: #b13b4d;
  background: #fff0f1;
  color: #8e1c2e;
}
.review-empty {
  padding: 15px 10px;
  border: 1px dashed #d4dce4;
  border-radius: 4px;
  color: #68788b;
  text-align: center;
  font-size: 12px;
}
.review-sync-note {
  margin: 0;
  color: #77869a;
  font-size: 10px;
  text-align: right;
}
.review-error {
  padding: 8px 10px;
  border: 1px solid #ecc6cc;
  border-radius: 4px;
  background: #fff0f1;
  color: #8e1c2e;
  font-size: 11px;
}
.review-wireframe-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #d8c9d8;
  border-radius: 5px;
  background: #fff8fe;
}
.review-wireframe-control > div {
  display: grid;
  gap: 2px;
}
.review-wireframe-control strong {
  color: #402441;
  font-size: 12px;
}
.review-wireframe-control small {
  color: #66536a;
  font-size: 10px;
  line-height: 1.35;
}
.review-wireframe-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  cursor: pointer;
}
.review-wireframe-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.review-switch-visual {
  width: 42px;
  height: 24px;
  position: relative;
  border: 1px solid #9b879e;
  border-radius: 20px;
  background: #e7e1e9;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.review-switch-visual:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #30223855;
  transition: transform 0.15s;
}
.review-wireframe-switch input:checked + .review-switch-visual {
  border-color: #cf00a8;
  background: #f0b6e3;
}
.review-wireframe-switch input:checked + .review-switch-visual:after {
  transform: translateX(18px);
  background: #cf00a8;
}
.review-wireframe-switch input:focus-visible + .review-switch-visual {
  outline: 2px solid #1b96ff;
  outline-offset: 2px;
}
.review-wireframe-guide {
  flex: 0 1 230px;
  max-height: 230px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d7dfe7;
  border-radius: 5px;
  background: #fbfcfd;
}
.review-wireframe-intro {
  margin: 0;
  padding: 9px 10px;
  color: #4b5c70;
  font-size: 10px;
  line-height: 1.45;
}
.review-wireframe-legend {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 9px 8px;
}
.review-wireframe-legend span {
  padding: 3px 5px;
  border: 1px solid #dbe1e8;
  border-radius: 3px;
  background: #fff;
  color: #344459;
  font-size: 9px;
  font-weight: 700;
}
.review-wireframe-legend .action {
  border-color: #ffb1e6;
}
.review-wireframe-legend .data {
  border-color: #aaff99;
}
.review-wireframe-legend .insight {
  border-color: #f5e66a;
}
.review-wireframe-item {
  padding: 8px 9px;
  border-top: 1px solid #e6ebf0;
  border-left: 3px solid #cf00a8;
  background: #fff;
}
.review-wireframe-item.action {
  border-left-color: #cf00a8;
}
.review-wireframe-item.data {
  border-left-color: #35e817;
}
.review-wireframe-item.insight {
  border-left-color: #e5cf00;
}
.review-wireframe-item > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}
.review-wireframe-item strong {
  color: #1f2d42;
  font-size: 11px;
  line-height: 1.3;
}
.review-wireframe-item p {
  margin: 4px 0;
  color: #42536a;
  font-size: 10px;
  line-height: 1.4;
}
.review-wireframe-item small {
  display: block;
  color: #5a6879;
  font-size: 9px;
  line-height: 1.4;
}
.review-wireframe-item small b {
  color: #34445a;
}
.review-wireframe-count {
  flex: none;
  padding: 2px 4px;
  border-radius: 3px;
  background: #eef2f6;
  color: #506075;
  font-size: 8px;
  font-weight: 700;
}
.review-wireframe-empty {
  margin: 0;
  padding: 10px;
  color: #65758a;
  font-size: 11px;
}
.review-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.lwc-wireframe-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}
.lwc-wireframe-frame {
  position: fixed;
  z-index: 55;
  pointer-events: none;
  border: 2px solid #cf00a8;
  background: rgba(255, 0, 190, 0.035);
  box-shadow: inset 0 0 0 1px #fff8;
}
.lwc-wireframe-frame.action {
  border-color: #cf00a8;
  background: rgba(255, 0, 190, 0.035);
}
.lwc-wireframe-frame.data {
  border-color: #35e817;
  background: rgba(57, 255, 20, 0.045);
}
.lwc-wireframe-frame.insight {
  border-color: #e5cf00;
  background: rgba(255, 238, 0, 0.055);
}
.lwc-wireframe-label {
  position: absolute;
  top: 3px;
  left: 3px;
  max-width: calc(100% - 6px);
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid #ff66d0;
  border-radius: 3px;
  background: #cf00a8;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 4px #19263744;
}
.lwc-wireframe-frame.data .lwc-wireframe-label {
  border-color: #37ea19;
  background: #d7ffd0;
  color: #11220d;
}
.lwc-wireframe-frame.insight .lwc-wireframe-label {
  border-color: #eddd00;
  background: #fff958;
  color: #272400;
}
.lwc-wireframe-frame[hidden] {
  display: none;
}
.review-pin-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: visible;
}
.review-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--review-color);
  color: #fff;
  box-shadow: 0 1px 6px #11294b66;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.review-pin.is-dragging {
  z-index: 5;
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 3px 12px #11294b88;
}
body.review-dragging {
  cursor: grabbing !important;
  user-select: none;
}
.review-pin:hover,
.review-pin:focus-visible {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.08);
}
.review-pin.is-complete {
  opacity: 0.7;
}
.review-pin-number {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.review-pin-preview {
  position: absolute;
  left: 24px;
  top: -7px;
  width: min(245px, calc(100vw - 96px));
  display: none;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--review-border);
  border-left: 3px solid var(--review-color);
  border-radius: 4px;
  background: #fff;
  color: #33465c;
  text-align: left;
  box-shadow: 0 4px 14px #17334d2a;
}
.review-pin-preview strong {
  color: #172e4c;
  font-size: 11px;
  line-height: 1.2;
}
.review-pin-preview span {
  overflow: hidden;
  color: #58687c;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-pin:hover .review-pin-preview,
.review-pin:focus-visible .review-pin-preview {
  display: grid;
}
.review-pin.opens-left .review-pin-preview {
  right: 24px;
  left: auto;
}
.review-compose-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 31, 52, 0.46);
}
.review-compose {
  width: min(490px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d1dae4;
  border-radius: 8px;
  background: #fff;
  color: #17233c;
  box-shadow: 0 18px 55px #10254a55;
}
.review-compose > header {
  margin-bottom: 4px;
}
.review-coordinate-note {
  margin: 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: #f3f6f9;
  color: #586b82;
  font-size: 11px;
}
.review-compose label {
  margin: 0;
  color: #344a64;
  font-size: 12px;
}
.review-compose input,
.review-compose textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #aebdcd;
  border-radius: 4px;
  background: #fff;
  color: #17233c;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.review-compose textarea {
  min-height: 120px;
  resize: vertical;
}
.review-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}
.review-compose-actions button {
  min-width: 92px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #b4c1cf;
  border-radius: 4px;
  background: #fff;
  color: #17375f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.review-compose-actions .review-save {
  border-color: #194b7d;
  background: #194b7d;
  color: #fff;
}
.review-compose-actions button:hover {
  filter: brightness(0.96);
}
@media (max-width: 1023px) {
  .review-admin-trigger {
    left: 14px;
    bottom: 12px;
    min-height: 44px;
  }
  .review-admin-panel {
    left: 10px;
    bottom: 64px;
    width: min(480px, calc(100vw - 20px));
    max-height: min(86dvh, 780px);
    padding: 14px;
  }
}
@media (max-width: 640px) {
  .review-admin-trigger {
    left: 10px;
    bottom: 10px;
  }
  .review-admin-panel {
    left: 8px;
    bottom: 62px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 72px);
    gap: 8px;
    padding: 12px;
  }
  .review-panel-head h2,
  .review-compose h2 {
    font-size: 19px;
  }
  .review-type-pickers {
    grid-template-columns: 1fr;
  }
  .review-comment-list {
    max-height: 31dvh;
  }
  .review-scope-tabs {
    gap: 8px;
  }
  .review-compose-backdrop {
    padding: 8px;
  }
  .review-compose {
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }
  .review-pin {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-admin-trigger,
  .review-pin {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 640px) {
  .review-wireframe-guide {
    max-height: 190px;
    flex-basis: 190px;
  }
  .review-wireframe-intro {
    font-size: 9px;
  }
  .lwc-wireframe-label {
    max-width: calc(100vw - 28px);
    font-size: 8px;
    padding: 2px 4px;
  }
  .lwc-wireframe-frame {
    border-width: 2px;
  }
}

/* Compact review controls so comments own the drawer space. */
.review-admin-panel {
  padding: 14px 16px 12px;
}
.review-panel-head {
  padding-bottom: 9px;
}
.review-panel-head h2 {
  font-size: 19px;
}
.review-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-guide-button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #51627a;
  border-radius: 4px;
  background: #202d40;
  color: #e8f2ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.review-guide-button:hover {
  background: #30435d;
  color: #fff;
}
.review-admin-tabs {
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid #303c4f;
}
.review-admin-tabs [role="tab"] {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}
.review-comments-content {
  gap: 7px;
  padding-top: 9px;
}
.review-section-head h3 {
  font-size: 16px;
}
.review-section-head .review-eyebrow {
  font-size: 9px;
}
.review-export-link {
  font-size: 11px;
  white-space: nowrap;
}
.review-type-pickers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.review-type-choice {
  min-width: 0;
  min-height: 34px;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
}
.review-type-choice.blue {
  color: #a8d8ff;
}
.review-type-choice.amber {
  color: #ffd18b;
}
.review-type-choice.teal {
  color: #8ce2d3;
}
.review-type-choice.selected {
  background: #28374c;
}
.review-type-dot {
  width: 9px;
  height: 9px;
  flex: none;
}
.review-add-button {
  min-height: 38px;
  font-size: 12px;
}
.review-wireframe-control {
  min-height: 38px;
  gap: 8px;
  padding: 6px 8px;
}
.review-wireframe-control strong {
  font-size: 11px;
}
.review-wireframe-control small {
  font-size: 10px;
  line-height: 1.3;
}
.review-wireframe-switch {
  transform: scale(0.82);
  transform-origin: right center;
}
.review-wireframe-guide {
  flex: 0 1 120px;
  max-height: 120px;
}
.review-visibility {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 6px 0;
}
.review-visibility strong {
  flex: 0 0 100%;
  font-size: 11px;
  color: #f0f4fa;
}
.review-visibility label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  color: #d2dbe8;
  font-size: 10px;
  white-space: nowrap;
}
.review-visibility input {
  width: 14px;
  height: 14px;
  accent-color: #79b8ee;
}
.visibility-dot {
  width: 8px;
  height: 8px;
  flex: none;
}
.review-scope-tabs {
  gap: 6px;
  min-height: 32px;
}
.review-scope-tabs [role="tab"] {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 11px;
}
.review-comment-list {
  flex: 1 1 0;
  min-height: 120px;
  overflow: auto;
  overscroll-behavior: contain;
}
.review-comment {
  flex: none;
}
.review-empty {
  color: #d5deea;
}
.review-sync-note {
  color: #afbdd0;
  font-size: 10px;
}
.review-admin-description {
  color: #d0d9e7;
}
.review-personas-content h3 {
  color: #f5f7fb;
}
.review-close:hover {
  background: #2a3a50;
  color: #fff;
}
.review-admin-panel :where(button, input, select):focus-visible {
  outline: 2px solid #8dc9ff;
  outline-offset: 2px;
}

/* Review-only reference page for the portal design system. */
.ds-page {
  display: grid;
  gap: 12px;
}
.ds-grid {
  gap: 12px;
  align-items: stretch;
}
.ds-brand-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.ds-brand-block {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  background: #a40035;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.ds-brand-block img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.ds-brand-row h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.ds-brand-row p,
.ds-note {
  margin: 0;
  color: #5c6675;
  font-size: 12px;
  line-height: 1.5;
}
.ds-token-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  color: #58677b;
  font-size: 11px;
}
.ds-token-line b {
  color: #17233c;
}
.ds-layout-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.ds-layout-example > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d5dde6;
  border-radius: 6px;
  background: #f5f7f9;
}
.ds-layout-example small {
  color: #5c6675;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.ds-layout-example b {
  font-size: 14px;
}
.ds-layout-example span {
  color: #5c6675;
  font-size: 11px;
}
.ds-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.ds-color {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.ds-color > i {
  width: 34px;
  height: 34px;
  border: 1px solid #d5dde6;
  border-radius: 5px;
}
.ds-color > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 6px;
  min-width: 0;
}
.ds-color b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-color code,
.ds-types code,
.ds-space-row small,
.ds-icon-card code {
  color: #58677b;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 9px;
}
.ds-color small {
  grid-column: 1/-1;
  color: #68778b;
  font-size: 9px;
}
.ds-types {
  display: grid;
  gap: 0;
}
.ds-type-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 2px 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #e5eaf0;
}
.ds-type-row:last-child {
  border-bottom: 0;
}
.ds-type-row > span {
  color: #17233c;
}
.ds-type-row small {
  grid-column: 1/-1;
  color: #68778b;
  font-size: 9px;
}
.ds-type-row .ds-page-title {
  font-size: 18px;
  font-weight: 700;
}
.ds-type-row .ds-section-heading {
  font-size: 15px;
  font-weight: 700;
}
.ds-type-row .ds-card-heading {
  font-size: 14px;
  font-weight: 650;
}
.ds-type-row .ds-body {
  font-size: 13px;
}
.ds-type-row .ds-supporting {
  font-size: 11px;
}
.ds-type-row .ds-field-label {
  font-size: 12px;
  font-weight: 600;
}
.ds-type-row .ds-button {
  font-size: 12px;
  font-weight: 600;
}
.ds-space-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.ds-space-row > div {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-height: 63px;
  padding: 8px 4px;
  border: 1px solid #e1e7ed;
  border-radius: 5px;
  background: #fafbfd;
}
.ds-space-row i {
  display: block;
  max-width: 24px;
  max-height: 24px;
  border-radius: 2px;
  background: #a40035;
}
.ds-space-row b {
  font-size: 10px;
}
.ds-surface-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.ds-surface-sample {
  padding: 12px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px #1123401a;
}
.ds-surface-sample b {
  font-size: 12px;
}
.ds-surface-sample p {
  margin: 4px 0 0;
  color: #5c6675;
  font-size: 10px;
}
.ds-control-sample {
  border-radius: 4px;
  box-shadow: none;
}
.ds-button-row,
.ds-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.ds-button-row .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}
.ds-pill-row {
  min-height: 38px;
}
.ds-notices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ds-notices .inline-notice {
  padding: 9px 10px;
  font-size: 11px;
}
.ds-notices .inline-notice.info {
  border-color: var(--ui-info-border);
  background: var(--ui-info-bg);
  color: var(--ui-info-text);
}
.ds-notices .inline-notice svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.ds-toast-sample {
  display: grid;
  gap: 2px;
  grid-column: 1/-1;
  padding: 9px 12px;
  border-radius: 6px;
  background: #10254a;
  color: #fff;
  box-shadow: 0 5px 14px #13274733;
}
.ds-toast-sample b {
  font-size: 11px;
}
.ds-toast-sample span {
  color: #d8e2f0;
  font-size: 10px;
}
.ds-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.ds-form-row > label:not(.ds-check):not(.ds-switch) {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: #344a64;
  font-size: 11px;
  font-weight: 600;
}
.ds-form-row .field {
  min-height: 36px;
  font-weight: 400;
}
.ds-form-row .ds-check,
.ds-form-row .ds-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: #344a64;
  font-size: 11px;
}
.ds-icons-section {
  scroll-margin-top: 20px;
}
.ds-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.ds-icon-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 4px;
  border: 1px solid #e1e7ed;
  border-radius: 5px;
  background: #fafbfd;
  text-align: center;
}
.ds-icon-card > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #174778;
}
.ds-icon-card b {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-icon-card code {
  overflow-wrap: anywhere;
  font-size: 8px;
}
@media (max-width: 760px) {
  .ds-brand-row {
    grid-template-columns: 1fr;
  }
  .ds-brand-block {
    min-height: 96px;
    flex-direction: row;
  }
  .ds-brand-block img {
    width: 48px;
    height: 48px;
  }
  .ds-layout-example,
  .ds-surface-row {
    grid-template-columns: 1fr;
  }
  .ds-color {
    grid-template-columns: 28px 1fr;
  }
  .ds-color > i {
    width: 28px;
    height: 28px;
  }
  .ds-colors {
    grid-template-columns: 1fr;
  }
  .ds-notices {
    grid-template-columns: 1fr;
  }
  .ds-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .review-admin-panel {
    padding: 10px 11px 9px;
  }
  .review-panel-head {
    padding-bottom: 7px;
  }
  .review-panel-head h2 {
    font-size: 17px;
  }
  .review-head-actions {
    gap: 5px;
  }
  .review-guide-button {
    min-height: 30px;
    padding: 4px 7px;
    font-size: 10px;
  }
  .review-admin-tabs {
    padding: 6px 0;
  }
  .review-comments-content {
    gap: 5px;
    padding-top: 7px;
  }
  .review-type-pickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }
  .review-type-choice {
    min-height: 34px;
    gap: 4px;
    padding: 4px;
    font-size: 9px;
  }
  .review-add-button {
    min-height: 36px;
  }
  .review-wireframe-control {
    padding: 4px 6px;
  }
  .review-visibility {
    gap: 2px 6px;
  }
  .review-visibility strong {
    font-size: 10px;
  }
  .review-visibility label {
    font-size: 9px;
  }
  .review-comment-list {
    min-height: 100px;
  }
  .review-scope-tabs [role="tab"] {
    padding: 4px 5px;
    font-size: 10px;
  }
  .ds-space-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .ds-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Review workflow controls: compact toolbar, large searchable comment list. */
.review-admin-trigger {
  width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 50%;
}
.review-trigger-icon {
  width: 22px;
  height: 22px;
}
.review-trigger-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-open-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #121a27;
  border-radius: 11px;
  background: #d83483;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.review-open-count[hidden] {
  display: none;
}
.review-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.review-search-wrap {
  position: relative;
  flex: 1 1 100px;
  min-width: 80px;
}
.review-search {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #42516a;
  border-radius: 5px;
  background: #1b2636;
  color: #f3f6fb;
  font: inherit;
  font-size: 11px;
}
.review-search::placeholder {
  color: #b1bdce;
  opacity: 1;
}
.review-search:focus {
  border-color: #8dc9ff;
  outline: 2px solid #8dc9ff;
  outline-offset: 1px;
}
.review-filter-wrap {
  position: relative;
  flex: none;
}
.review-filter-button,
.review-export-button,
.review-add-icon {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #46566e;
  border-radius: 5px;
  background: #202d40;
  color: #edf3fb;
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}
.review-filter-button {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 120px;
}
.review-filter-button span {
  overflow: hidden;
  color: #c3d0e0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-filter-button b {
  color: #dfe9f5;
}
.review-filter-button:hover,
.review-export-button:hover {
  border-color: #7186a2;
  background: #2b3d55;
}
.review-filter-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 5;
  width: max-content;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid #475a75;
  border-radius: 6px;
  background: #182231;
  box-shadow: 0 8px 22px #050a13aa;
}
.review-filter-menu button {
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dfe7f1;
  text-align: left;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.review-filter-menu button:hover,
.review-filter-menu button.selected {
  background: #293b52;
  color: #fff;
}
.review-add-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: #2676a7;
  background: #176a98;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.review-add-icon:hover {
  background: #1b80b5;
}
.review-comment-count {
  margin-left: auto;
  color: #b5c2d2;
  font-size: 10px;
  white-space: nowrap;
}
.review-scope-tabs {
  flex: none;
}
.review-comment-list {
  flex: 1 1 0;
  min-height: 120px;
  max-height: none;
  grid-auto-rows: max-content;
  align-content: start;
  overscroll-behavior: contain;
}
.review-comment {
  padding: 8px 9px;
}
.review-comment.is-unread {
  box-shadow: inset 0 0 0 1px #91caff;
}
.review-comment.is-read {
  opacity: 0.88;
}
.review-comment-top {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.review-comment-page {
  margin-left: auto;
  max-width: 40%;
}
.review-status-pill {
  flex: none;
  padding: 2px 6px;
  border-radius: 10px;
  background: #34445a;
  color: #dce6f1;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.review-status-pill.reviewed {
  background: #174b43;
  color: #9be5d1;
}
.review-status-pill.declined {
  background: #562c37;
  color: #ffb2bf;
}
.review-status-pill.pending {
  background: #493c22;
  color: #ffdc93;
}
.review-read-pill {
  flex: none;
  padding: 2px 6px;
  border-radius: 10px;
  background: #29374a;
  color: #c7d4e4;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.review-read-pill.unread {
  background: #253d55;
  color: #a9d7ff;
}
.review-read-pill.read {
  background: #293b36;
  color: #b8ddce;
}
.review-comment-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}
.review-comment-actions button {
  min-height: 27px;
  padding: 4px 7px;
  border-color: transparent;
  color: #b9d8f7;
  font-size: 10px;
}
.review-comment-actions .review-action-spacer {
  flex: 1 1 auto;
}
.review-comment-actions .review-action-primary {
  border-color: #286c61;
  background: #184a42;
  color: #b7f0df;
}
.review-comment-actions .review-action-primary:hover {
  background: #226253;
}
.review-comment-actions .review-action-decline {
  color: #ffb9c2;
}
.review-comment-actions .review-delete {
  color: #ffadb8;
}
.review-edit-form {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}
.review-edit-form label {
  color: #dbe5f1;
  font-size: 10px;
  font-weight: 650;
}
.review-edit-form textarea {
  width: 100%;
  min-height: 68px;
  padding: 7px 8px;
  border: 1px solid #51647d;
  border-radius: 4px;
  background: #111b29;
  color: #f1f5fa;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  resize: vertical;
}
.review-screen-tools {
  flex: none;
  border: 1px solid #35445a;
  border-radius: 5px;
  background: #182231;
}
.review-screen-tools summary {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #e1e9f3;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.review-screen-tools summary::-webkit-details-marker {
  display: none;
}
.review-screen-tools summary:before {
  content: "›";
  color: #a8bfd8;
  font-size: 15px;
  transform: rotate(0);
  transition: transform 0.12s;
}
.review-screen-tools[open] summary:before {
  transform: rotate(90deg);
}
.review-screen-tools summary span {
  margin-left: auto;
  color: #aab8ca;
  font-weight: 400;
}
.review-screen-tools-content {
  display: grid;
  gap: 6px;
  padding: 0 7px 7px;
}
.review-screen-tools .review-wireframe-control {
  min-height: 35px;
}
.review-screen-tools .review-wireframe-guide {
  flex: none;
  max-height: 105px;
}
.review-screen-tools .review-visibility {
  border-color: #35445a;
}
.review-export-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #070d17b8;
}
.review-export-dialog {
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #43536a;
  border-radius: 8px;
  background: #172131;
  color: #edf3fb;
  box-shadow: 0 16px 50px #0007;
}
.review-export-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-export-dialog h2 {
  margin: 2px 0 0;
  color: #f5f7fb;
  font-size: 18px;
}
.review-export-dialog p {
  margin: 0;
  color: #c3cfde;
  font-size: 12px;
}
.review-export-choices {
  display: grid;
  gap: 7px;
}
.review-export-choices button {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #42546d;
  border-radius: 5px;
  background: #202d40;
  color: #f2f6fb;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.review-export-choices button:hover {
  border-color: #82bdeb;
  background: #293c55;
}
.review-export-choices strong {
  font-size: 12px;
}
.review-export-choices small {
  color: #c2cfde;
  font-size: 10px;
}
.review-admin-panel :where(button, input, select, textarea):focus-visible {
  outline: 2px solid #8dc9ff;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .review-admin-trigger {
    right: 12px;
    left: auto;
    bottom: auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .review-admin-panel {
    padding: 10px 10px 8px;
  }
  .review-toolbar {
    gap: 4px;
  }
  .review-filter-button,
  .review-export-button {
    padding: 4px 6px;
    font-size: 9px;
  }
  .review-filter-button {
    max-width: 105px;
  }
  .review-add-icon {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .review-search {
    min-height: 32px;
    font-size: 10px;
  }
  .review-comment-list {
    min-height: 100px;
  }
  .review-comment-actions {
    gap: 1px;
  }
  .review-comment-actions button {
    font-size: 8px;
    padding: 3px 4px;
  }
  .review-screen-tools summary {
    font-size: 9px;
  }
  .review-export-dialog {
    padding: 14px;
  }
}

/* Review tools use a dark, right-side drawer so the review UI is distinct from the portal. */
.review-admin-trigger {
  top: 12px;
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 91;
  min-height: 40px;
  border-color: #202a3a;
  border-radius: 6px;
  background: #182131;
  color: #fff;
  box-shadow: 0 3px 12px rgba(5, 12, 24, 0.28);
}
.review-admin-trigger:hover {
  border-color: #4d5e77;
  background: #263449;
}
.review-admin-trigger:active {
  background: #111a29;
}
.review-trigger-icon {
  color: #a8c8ee;
}
.review-open-count {
  background: #d83483;
  color: #fff;
}
.review-admin-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  border: 0;
  background: rgba(8, 13, 23, 0.48);
  opacity: 1;
  cursor: default;
}
.review-admin-scrim[hidden],
.review-admin-content[hidden] {
  display: none !important;
}
.review-placement-notice {
  position: fixed;
  top: 62px;
  left: 50%;
  z-index: 92;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  padding: 9px 12px;
  border: 1px solid #43536a;
  border-radius: 6px;
  background: #182131;
  color: #f1f5fa;
  box-shadow: 0 4px 16px rgba(5, 12, 24, 0.25);
  font-size: 12px;
  font-weight: 600;
}
.review-placement-notice[hidden] {
  display: none !important;
}
.review-placement-notice button {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #697b94;
  border-radius: 4px;
  background: #27364b;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.review-placement-notice button:hover {
  background: #354a65;
}
.review-admin-panel {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 100;
  width: min(480px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  gap: 0;
  padding: 20px 20px 16px;
  border: 0;
  border-left: 1px solid #3b4658;
  border-radius: 0;
  background: #121a27;
  color: #e8edf5;
  box-shadow: -14px 0 42px rgba(4, 10, 20, 0.32);
  font-size: 13px;
  transform: translateX(102%);
  transition: transform 0.24s cubic-bezier(0.2, 0.75, 0.25, 1);
  pointer-events: none;
}
.review-admin-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.review-admin-panel:focus {
  outline: 0;
}
.review-panel-head {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #303c4f;
}
.review-panel-head h2 {
  color: #f5f7fb;
  font-size: 21px;
}
.review-eyebrow {
  color: #94a3b8;
}
.review-close {
  color: #d5deeb;
}
.review-close:hover {
  background: #273448;
  color: #fff;
}
.review-admin-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 0 12px;
  border-bottom: 1px solid #303c4f;
}
.review-admin-tabs [role="tab"] {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #b9c4d4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.review-admin-tabs [role="tab"]:hover {
  background: #202c3e;
  color: #fff;
}
.review-admin-tabs [role="tab"][aria-selected="true"] {
  border-color: #526984;
  background: #26364b;
  color: #fff;
}
.review-admin-tabs [role="tab"] span {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #d83483;
  color: #fff;
  font-size: 10px;
}
.review-admin-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.review-comments-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 15px;
}
.review-section-head {
  flex: none;
  align-items: center;
  padding: 0;
}
.review-section-head h3,
.review-personas-content h3 {
  margin: 2px 0 0;
  color: #f2f5fa;
  font-size: 17px;
}
.review-section-head .review-eyebrow {
  font-size: 9px;
}
.review-export-link {
  color: #9ec9f4;
  font-size: 11px;
}
.review-export-link:hover {
  color: #d5eaff;
}
.review-type-pickers {
  flex: none;
  grid-template-columns: 1fr;
  gap: 6px;
}
.review-type-choice {
  min-height: 38px;
  padding: 7px 10px;
  border-color: #39475b;
  border-radius: 5px;
  background: #1b2635;
  color: #dce4ee;
  font-size: 12px;
}
.review-type-choice:hover {
  border-color: #687b95;
  background: #243247;
}
.review-type-choice.selected {
  border-color: currentColor;
  background: #27354a;
}
.review-add-button {
  flex: none;
  min-height: 42px;
  border-color: #256c9d;
  border-radius: 5px;
  background: #176a98;
}
.review-add-button:hover {
  background: #1b80b5;
}
.review-adding-hint {
  flex: none;
  border: 1px solid #96742e;
  background: #3a301d;
  color: #ffe3a3;
}
.review-wireframe-control {
  flex: none;
  border-color: #6b4a69;
  background: #2c2034;
  color: #f6e9f4;
}
.review-wireframe-control strong {
  color: #fff;
}
.review-wireframe-control small {
  color: #d1bed5;
}
.review-wireframe-guide {
  flex: 0 1 190px;
  max-height: 190px;
}
.review-visibility {
  flex: none;
  padding: 9px 0;
  border-color: #303c4f;
  color: #bbc6d5;
}
.review-visibility strong {
  color: #e4eaf2;
}
.review-scope-tabs {
  flex: none;
  gap: 10px;
  border-color: #303c4f;
}
.review-scope-tabs [role="tab"] {
  min-height: 36px;
  color: #abb8ca;
}
.review-scope-tabs [role="tab"]:hover {
  color: #fff;
}
.review-scope-tabs [role="tab"][aria-selected="true"] {
  border-color: #58a5dc;
  color: #b7ddfb;
}
.review-comment-list {
  min-height: 80px;
  max-height: none;
  gap: 9px;
  padding: 2px 3px 6px 0;
}
.review-comment {
  flex: none;
}
.review-empty {
  border-color: #46566c;
  color: #bdc8d8;
}
.review-sync-note {
  flex: none;
  padding-top: 2px;
  color: #93a0b3;
}
.review-error {
  flex: none;
}
.review-personas-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 20px 2px 8px 0;
}
.review-personas-content h3 {
  margin-top: 3px;
}
.review-admin-description {
  margin: 0;
  color: #b5c1d1;
  font-size: 12px;
  line-height: 1.5;
}
.review-admin-panel .review-field-label {
  margin: 3px 0 -5px;
  color: #d4dce7;
}
.review-select {
  min-height: 44px;
  border-color: #46566c;
  border-radius: 5px;
  background: #1b2635;
  color: #f0f4f9;
}
.review-select option {
  background: #1b2635;
  color: #f0f4f9;
}
.review-context {
  border-left-color: #68a6d3;
  background: #1c2b3d;
  color: #c2cfde;
  font-size: 12px;
}
.review-context strong {
  color: #fff;
}
.review-pin-layer {
  z-index: 45;
}
.review-compose-backdrop {
  background: rgba(8, 13, 23, 0.64);
}
@media (max-width: 640px) {
  .review-admin-trigger {
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
    min-height: 42px;
  }
  .review-admin-panel {
    width: 100vw;
    padding: 16px 15px 12px;
  }
  .review-admin-tabs {
    padding-top: 11px;
  }
  .review-comments-content {
    gap: 10px;
  }
  .review-wireframe-guide {
    max-height: 150px;
    flex-basis: 150px;
  }
  .review-comment-list {
    min-height: 80px;
  }
  .review-compose-backdrop {
    z-index: 130;
  }
  .review-placement-notice {
    top: 60px;
    max-width: calc(100vw - 20px);
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-admin-panel {
    transition: none !important;
  }
}

/* Dark review picklists use the same right inset and chevron anchor as portal selects. */
.review-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 34px 7px 12px;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23dce7f4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.review-pin-layer.is-occluded {
  visibility: hidden !important;
  pointer-events: none !important;
}

.review-notification-examples {
  flex: none;
  padding-top: 6px;
  border-top: 1px solid #36465b;
  color: #e0e7f0;
}
.review-notification-examples summary {
  width: max-content;
  max-width: 100%;
  color: #c4d0e0;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.review-notification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 7px;
}
.review-notification-grid button {
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #44546a;
  border-radius: 4px;
  background: #1b2636;
  color: #e5ebf3;
  font: inherit;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}
.review-notification-grid button:hover {
  border-color: #8dc9ff;
  background: #26364a;
  color: #fff;
}
.lwc-wireframe-layer.is-modal-layer {
  z-index: 150;
}
.ds-auth-patterns {
  display: grid;
  gap: 12px;
}
.ds-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ds-auth-sample {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d5dde6;
  border-radius: 6px;
  background: #f8fafc;
}
.ds-auth-sample > b {
  color: #17233c;
  font-size: 13px;
}
.ds-mini-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #b9c6d4;
  border-radius: 4px;
  background: #fff;
  color: #54647a;
  font-size: 11px;
}
.ds-auth-sample .status {
  width: max-content;
}
.ds-auth-sample .btn {
  width: max-content;
  min-width: 80px;
  min-height: 34px;
}
.ds-auth-notices .inline-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5dde6;
  border-radius: 5px;
}
@media (max-width: 640px) {
  .review-notification-grid,
  .ds-auth-grid {
    grid-template-columns: 1fr;
  }
}
.review-comment-component {
  margin-top: 3px;
  color: #51657b;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.review-comment-component strong {
  color: #263d55;
  font-weight: 650;
}

/* Route comments back to their pinned location and keep review controls available on phones. */
#review-admin-root {
  position: fixed;
  inset: 0;
  z-index: 980;
  pointer-events: none;
}
#review-admin-root
  :where(
    .review-admin-trigger,
    .review-admin-panel,
    .review-admin-scrim,
    .review-placement-notice,
    .review-compose-backdrop,
    .review-export-backdrop
  ) {
  pointer-events: auto;
}
.review-admin-trigger {
  z-index: 1002 !important;
  top: 12px !important;
  right: 18px !important;
  bottom: auto !important;
  left: auto !important;
}
.review-admin-panel {
  z-index: 1001 !important;
}
.review-admin-scrim {
  z-index: 1000 !important;
}
.review-comment-actions [data-review-action="go-to-comment"] {
  border-color: #3a5878;
  background: #1c2a3d;
  color: #c8e4ff;
}
.review-comment-actions [data-review-action="go-to-comment"]:hover {
  border-color: #81bce9;
  background: #263a53;
  color: #fff;
}
.review-comment-actions {
  flex-wrap: wrap;
}
.review-pin.is-jumping {
  animation: review-pin-hop 0.85s ease-in-out 2;
  z-index: 70;
}
@keyframes review-pin-hop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  25%,
  65% {
    transform: translateY(-13px) scale(1.12);
  }
  45%,
  85% {
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 640px) {
  #review-admin-root {
    z-index: 980;
  }
  .review-admin-trigger {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .review-admin-panel {
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    max-width: none !important;
    padding: calc(14px + env(safe-area-inset-top)) 14px
      calc(12px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: translateX(102%);
  }
  .review-admin-panel.is-open {
    transform: translateX(0);
  }
  .review-panel-head {
    flex: none;
  }
  .review-admin-tabs {
    flex: none;
  }
  .review-comments-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }
  .review-comment-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .review-comment-actions button {
    min-height: 34px;
    font-size: 10px;
    padding: 5px 7px;
  }
  .review-screen-tools {
    flex: none;
    max-height: 32vh;
    overflow: auto;
  }
  .review-compose-backdrop {
    z-index: 1100 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-pin.is-jumping {
    animation: none !important;
  }
}

/* Scenario settings stay in the scrollable panel, without altering shared reviews. */
.review-renewal-control {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e9ee;
}
.review-renewal-control .review-field-label {
  margin: 0;
}
.review-personas-content .review-context {
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 599px) {
  .review-select {
    font-size: 16px;
  }
  .review-renewal-control .review-guide-button {
    min-height: 44px;
  }
}
/* Leave the dialog title and Close button unobscured on narrow screens. */
body:has(.modal-backdrop) .review-admin-trigger {
  top: auto;
  bottom: 12px;
}
/* Override the existing fixed-corner review trigger only while a dialog is open. */
body:has(.modal-backdrop) .review-admin-trigger {
  top: auto !important;
  bottom: 12px !important;
}

/* Explicit high-contrast actions remain legible against every comment type. */
.review-comment-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.review-comment-actions button { color: #173b60; background: #fff; border: 1px solid #6a8199; border-radius: 6px; min-height: 36px; padding: 7px 11px; font-weight: 600; box-shadow: 0 1px 2px #132e4914; }
.review-comment-actions button:hover { background: #e3eef9; color: #102b49; border-color: #234f7e; }
.review-comment-actions [data-review-action="go-to-comment"] { background: #164c80; color: #fff; border-color: #164c80; }
.review-comment-actions [data-review-action="go-to-comment"]:hover { background: #10395f; color: #fff; }
.review-comment-actions .review-action-primary { color: #fff; background: #146447; border-color: #146447; }
.review-comment-actions .review-action-primary:hover { background: #0d4e36; color: #fff; }
.review-comment-actions .review-action-decline { background: #fff3df; color: #714000; border-color: #ae7426; }
.review-comment-actions .review-delete { background: #fff2f2; color: #a0182a; border-color: #b4505c; }
.review-comment-actions .review-delete:hover,.review-comment-actions .review-delete.armed { background: #a0182a; color: #fff; }
.review-comment-actions .review-action-spacer { flex-basis: 100%; height: 0; }
.review-comment-list { overflow-anchor: none; overscroll-behavior: contain; }

/* Compact comment actions: a single row on desktop, wrapping only on narrow screens. */
.review-comment-actions { gap: 5px; }
.review-comment-actions .review-action-spacer { display: none; }
.review-comment-actions button { min-width: 0; min-height: 28px; padding: 4px 7px; font-size: 11px; line-height: 1.25; white-space: nowrap; border-radius: 5px; }
.review-events-content { overflow-y: auto; padding-top: 15px; }
.review-events-content h3 { color: #f2f5fa; margin: 2px 0 8px; }
.review-event-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid #46566c; }
.review-event-section h4 { color: #f2f5fa; margin: 0 0 12px; font-size: 14px; }
.review-events-content .review-notification-examples { max-height: none; margin: 16px 0; }
.review-events-content .review-screen-tools-content { padding: 0; }
.review-payment-currency-control { display: grid; gap: 10px; padding: 12px; border: 1px solid #52657d; border-radius: 7px; background: #1a293b; }
.review-payment-currency-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-payment-currency-heading > div { display: grid; gap: 4px; }
.review-payment-currency-heading strong { color: #edf4fb; font-size: 12px; }
.review-payment-currency-heading small { max-width: 260px; color: #b8c7d8; font-size: 11px; line-height: 1.4; }
.review-payment-currency-control .review-wireframe-switch { flex: 0 0 auto; }
.review-payment-currency-control .review-context { font-size: 10px; }
.review-admin-tabs [role=tab] { flex: 1; }

.review-admin-tabs [role="tab"] { justify-content: center; text-align: center; }
.review-visibility .visibility-dot { display: none; }

/* Reply threads stay attached to their original screen pin. */
.review-pin-wrap {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.review-pin-wrap:hover,
.review-pin-wrap:focus-within { z-index: 6; }
.review-pin-wrap > .review-pin {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  pointer-events: auto;
}
.review-pin-wrap > .review-pin:hover,
.review-pin-wrap > .review-pin:focus-visible { transform: scale(1.08); }
.review-pin-wrap > .review-pin.is-dragging { transform: scale(1.12); }
.review-pin-preview {
  left: 21px;
  top: -8px;
  z-index: 2;
  width: min(260px, calc(100vw - 96px));
  pointer-events: auto;
}
.review-pin-wrap:hover .review-pin-preview,
.review-pin-wrap:focus-within .review-pin-preview { display: grid; }
.review-pin-wrap.opens-left .review-pin-preview { right: 21px; left: auto; }
.review-pin-preview small {
  color: #52657b;
  font-size: 10px;
  line-height: 1.35;
}
.review-pin-preview .review-pin-reply-preview {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-pin-preview button {
  justify-self: start;
  min-height: 27px;
  margin-top: 3px;
  padding: 3px 9px;
  border: 1px solid #1d5d91;
  border-radius: 5px;
  background: #e9f3fc;
  color: #164c80;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.review-pin-reply-count {
  position: absolute;
  top: -8px;
  right: -9px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 3px;
  border: 1px solid #fff;
  border-radius: 99px;
  background: #173b60;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.review-replies {
  display: grid;
  gap: 8px;
  margin: 12px 0 2px 12px;
  padding: 0 0 0 12px;
  border-left: 2px solid #b7cbe0;
}
.review-replies-heading {
  color: #52657b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.review-reply { display: grid; gap: 3px; }
.review-reply-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: #344a62; font-size: 11px; }
.review-reply-byline time { color: #687b91; font-size: 10px; }
.review-reply p { margin: 0; color: #26394f; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.review-reply-compose .review-reply-context {
  display: grid;
  gap: 4px;
  max-height: 120px;
  overflow: auto;
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #4f91c9;
  border-radius: 5px;
  background: #eef5fb;
  color: #314860;
  font-size: 12px;
  line-height: 1.45;
}
.review-reply-context span { overflow-wrap: anywhere; }
.review-comment-actions [data-review-action="reply"] { color: #164c80; background: #e9f3fc; border-color: #8aaece; }
.review-comment-actions [data-review-action="reply"]:hover { background: #dcecf9; }
