body.review-wizard {
  line-height: 1.45;
}

.review-wizard main.wrap {
  max-width: 1152px;
  margin-block: 16px 0;
  padding-bottom: 28px;
}

.review-wizard h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.review-wizard-header,
.review-wizard-nav,
.review-wizard-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-wizard-header {
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-wizard-header button,
.review-wizard-nav button,
.review-wizard-footer button,
.review-wizard .decision > .body > .actions > button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 14px;
}

.review-wizard .review-primary,
.review-wizard-header [data-download] {
  border-color: var(--shared-blue, #0f62fe);
  background: var(--shared-blue, #0f62fe);
  color: white;
}

.review-wizard .review-primary:hover,
.review-wizard-header [data-download]:hover {
  border-color: #0050e6;
  background: #0050e6;
}

.review-wizard button:disabled {
  opacity: .55;
  cursor: default;
}

.review-wizard-nav {
  position: relative;
  margin: 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  scroll-margin-top: 8px;
}

.review-wizard-footer {
  justify-content: flex-end;
  margin: 8px 0;
}

.review-progress {
  margin-right: auto;
  color: var(--shared-ink, #161616);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.review-jump > summary,
.review-meta > summary,
.review-example > summary,
.review-notes > summary,
.review-support > summary,
.review-support-section > summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
}

.review-jump > summary {
  font-size: 14px;
  padding-inline: 8px;
}

.review-jump .decision-list {
  position: absolute;
  z-index: 6;
  inset: 100% 0 auto auto;
  width: min(660px, 100%);
  max-height: min(50vh, 420px);
  overflow: auto;
  columns: auto;
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
  box-shadow: 0 5px 15px #0002;
}

.review-jump .decision-list a {
  padding: 4px 8px;
  margin: 0;
  font-size: 14px;
}

.review-jump .decision-list a[aria-current="step"] {
  background: var(--shared-selected, #e8f1ff);
  font-weight: 600;
}

.review-meta {
  font-size: 14px;
}

.review-meta[open] {
  background: white;
  border: 1px solid var(--line);
  padding: 8px 12px;
  margin-bottom: 8px;
}

.review-meta .identity {
  gap: 8px;
}

.review-meta input {
  padding: 5px 8px;
}

.review-meta > label,
.review-meta > .actions {
  margin: 6px 0 0;
}

.review-wizard [data-status] {
  padding: 0;
  margin: 3px 0;
  font-size: 13px;
}

.review-wizard [data-status]:empty {
  display: none;
}

.review-wizard .decision {
  border: 1px solid var(--line);
  background: white;
  padding: 8px 14px;
}

.review-wizard .decision > summary {
  cursor: default;
  padding: 2px 0;
  color: var(--shared-ink, #161616);
  font-size: 20px;
  line-height: 1.3;
}

.review-wizard .decision > summary::before {
  content: none;
}

.review-wizard .decision > summary .ref {
  margin: 2px 0;
}

.review-wizard .decision .body {
  padding: 0;
}

.review-wizard .decision > .body > .actions {
  align-items: center;
  margin: 5px 0;
  font-size: 14px;
}

.review-example,
.review-notes {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  font-size: 14px;
}

.review-example > summary,
.review-notes > summary {
  color: var(--shared-link, #0043ce);
}

.review-wizard .review-answer-area {
  width: 100%;
  min-width: 0;
  margin: 8px 0;
}

.review-answer-area legend {
  margin: 0;
  color: var(--shared-ink, #161616);
}

.review-answer-hint {
  margin: 0 0 6px;
  color: var(--shared-muted, #525252);
  font-size: 13px;
}

.review-matrix-frame {
  overflow: auto;
}

.review-matrix {
  min-width: 530px;
  line-height: 1.3;
}

.review-matrix th,
.review-matrix td {
  padding: 4px 8px;
  border-color: #d6d6d6;
}

.review-matrix thead th {
  background: var(--shared-layer, #f4f4f4);
}

.review-matrix tbody th {
  background: white;
  font-weight: 400;
}

.review-matrix th:not(:first-child),
.review-matrix td {
  width: 112px;
  text-align: center;
  white-space: nowrap;
}

.review-matrix td {
  padding: 0;
}

.review-wizard form .review-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.review-matrix td .review-option {
  justify-content: center;
  min-height: 30px;
}

.review-wizard form .review-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--shared-blue, #0f62fe);
  cursor: pointer;
}

.review-wizard .review-checkbox:focus-visible {
  outline: 2px solid var(--shared-blue, #0f62fe);
  outline-offset: 2px;
}

.review-notes label.wide {
  margin-top: 5px;
}

.review-notes textarea {
  min-height: 54px;
  padding: 6px 8px;
}

.review-support {
  border: 1px solid var(--line);
  background: white;
  padding: 2px 14px;
  font-size: 14px;
}

.review-support-section {
  border-top: 1px solid var(--line);
}

.review-support-section > section {
  padding-bottom: 8px;
}

.review-inline-field {
  margin: 6px 0;
}

.review-inline-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 2px 0;
}

@media screen {
  .review-wizard form [hidden],
  .review-wizard .review-print-row,
  .review-wizard .review-support-heading {
    display: none !important;
  }
}

@media print {
  .review-wizard .review-matrix-frame,
  .review-wizard .review-answer-hint,
  .review-wizard .review-inline-answers,
  .review-wizard-header [data-download],
  .print-single .review-support {
    display: none !important;
  }

  .review-wizard .decision[hidden] {
    display: block;
  }

  .review-wizard .review-print-row {
    display: grid;
  }
}

/* Compact source status tags for the Institution review wizard. */
.review-source-badges{display:flex;flex-wrap:wrap;gap:.375rem;margin:.4rem 0 .55rem}
.review-source-badge{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:1rem;background:#fff1c7;color:#684e00;font-size:.75rem;line-height:1.4}
.review-source-published{background:#defbe6;color:#0e6027}

.review-source-guidance{background:#e5f0ff;color:#134484}
