.prep-workbench {
  min-width: 0;
  width: 100%;
}
.prep-handling {
  margin: 20px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d3dde5;
  min-width: 0;
}
.prep-handling-head,
.prep-return-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.prep-handling-head h3 {
  margin: 0;
  font-size: 16px;
}
.prep-handling .prep-boundary {
  margin-block: 12px;
}
.prep-handling .table-scroll {
  max-height: 320px;
  overflow: auto;
}
.prep-handling table {
  min-width: 780px;
}
.prep-handling td {
  vertical-align: top;
}
.prep-handling td:first-child {
  width: 26%;
}
.prep-handling td:nth-child(3) {
  width: 42%;
}
.prep-handling pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.prep-handling input[type="checkbox"] {
  accent-color: #487d9e;
  min-width: 18px;
  min-height: 18px;
  vertical-align: middle;
}
.prep-source-search {
  margin-block: 16px 8px;
  max-width: 560px;
}
.prep-source-count,
.prep-reference-list {
  font-size: 13px;
  line-height: 1.6;
  color: #4c5d70;
}
.prep-return-bar {
  background: #eaf0f8;
  padding: 16px 20px;
  border: 1px solid #d3dde5;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #253d57;
  font-size: 14px;
}
.prep-embedded {
  padding: 24px;
}
.prep-heading,
.prep-detail-head,
.prep-query,
.prep-actions,
.prep-upload-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.prep-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}
.prep-heading h1,
.prep-heading h2 {
  margin: 0;
  font-size: 24px;
}
.prep-heading h2 {
  font-size: 18px;
  font-weight: 650;
}
.prep-query {
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 16px;
  background: #f3f6fa;
  border-radius: 10px;
}
.prep-query .field {
  min-width: 260px;
  flex: 0 1 560px;
  margin: 0;
}
.prep-query select {
  min-height: 40px;
  width: 100%;
}
.prep-query p,
.prep-boundary,
.prep-upload p {
  color: #4c5d70;
  font-size: 14px;
  line-height: 1.65;
}
.prep-query p {
  flex-basis: 100%;
  margin: 0;
}
.prep-body {
  padding: 0;
  background: #fff;
  min-width: 0;
}
.prep-workbench:not(.prep-embedded) {
  padding: 24px;
  background: #fff;
  border: 1px solid #d3dde5;
  border-radius: 14px;
}
.prep-progress {
  font-weight: 650;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
}
.prep-boundary {
  margin: 0 0 20px;
  max-width: 90ch;
}
.prep-body > .table-scroll table {
  table-layout: fixed;
  width: 100%;
  min-width: 900px;
}
.prep-body > .table-scroll th:nth-child(1) {
  width: 16%;
}
.prep-body > .table-scroll th:nth-child(2) {
  width: 19%;
}
.prep-body > .table-scroll th:nth-child(3) {
  width: 34%;
}
.prep-body > .table-scroll th:nth-child(4) {
  width: 17%;
}
.prep-body > .table-scroll th:nth-child(5) {
  width: 14%;
}
.prep-body > .table-scroll td {
  padding: 16px 14px;
}
.prep-body > .table-scroll .button {
  white-space: normal;
  text-align: left;
}
.prep-body .tag {
  white-space: normal;
  text-align: left;
}
.prep-handover {
  margin: 16px 0 24px;
}
.prep-handover .field {
  margin-bottom: 12px;
}
.prep-handover-note {
  margin-top: 24px;
}
.prep-handover-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prep-missing {
  padding-left: 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.prep-list-back {
  margin-bottom: 16px;
}
.prep-detail-head h2 {
  font-size: 20px;
  margin: 0;
}
.prep-known {
  margin: 20px 0;
  padding: 14px;
  background: #eef3f8;
  border-radius: 10px;
  color: #253d57;
}
.prep-known summary {
  cursor: pointer;
  font-weight: 600;
}
.prep-known ul {
  padding-left: 20px;
  line-height: 1.7;
  margin-bottom: 0;
}
.prep-body .form-grid textarea {
  min-height: 104px;
  resize: vertical;
  overflow-wrap: anywhere;
}
.prep-body .form-grid {
  margin-bottom: 24px;
}
.prep-upload {
  margin: 24px 0;
}
.prep-upload h3,
.prep-body [data-prep-review] h3,
.prep-body [data-prep-comparison] h3,
.prep-review-note h3,
.prep-history-row {
  margin-top: 24px;
}
.prep-upload ul {
  padding-left: 20px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.prep-upload input[type="checkbox"],
.prep-body [data-prep-review] input[type="checkbox"] {
  margin-right: 6px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #487d9e;
}
.prep-upload-controls {
  align-items: center;
}
.prep-upload-controls .field {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 300px;
}
.prep-upload-controls input[type="file"] {
  max-width: 100%;
}
.prep-actions {
  margin: 18px 0;
}
.prep-feedback {
  min-height: 24px;
  line-height: 1.6;
  color: #27577a;
  overflow-wrap: anywhere;
}
.prep-feedback.error {
  color: #a5232a;
}
.prep-history-row summary {
  cursor: pointer;
  font-weight: 600;
}
.prep-body table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.prep-body .table-scroll {
  max-width: 100%;
}
.prep-body [data-prep-review] {
  border-top: 1px solid #d3dde5;
  padding-top: 12px;
}
.prep-body [data-prep-review] > .field {
  margin: 16px 0;
}
.prep-body [data-prep-review] p {
  font-size: 14px;
  color: #4c5d70;
}
.preparation-workdesk {
  margin: 20px 0;
}
.preparation-workdesk .panel-head {
  gap: 16px;
}
.prep-w-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 0;
}
.prep-w-filters > span {
  flex: 1 1 280px;
  font-size: 13px;
  color: #4c5d70;
}
.prep-w-filters [aria-pressed="true"],
.prep-w-filters [aria-pressed="true"]:hover:not(:disabled) {
  background: #416f8e;
  color: #fff;
  border-color: #416f8e;
}
.prep-w-stamp,
.prep-w-status {
  padding: 0 20px;
  font-size: 13px;
  color: #4c5d70;
  line-height: 1.65;
}
.prep-w-status {
  padding-block: 16px;
}
.preparation-workdesk .table-scroll {
  max-height: 420px;
}
.preparation-workdesk td {
  vertical-align: top;
}
.preparation-workdesk td small {
  display: block;
  color: #4c5d70;
  margin-top: 6px;
}
.preparation-workdesk .tag {
  white-space: normal;
}
.preparation-workdesk .button {
  min-height: 36px;
}
@media (max-width: 640px) {
  .prep-embedded,
  .prep-workbench:not(.prep-embedded) {
    padding: 16px;
  }
  .prep-query {
    padding: 12px;
  }
  .prep-query > .button {
    width: 100%;
  }
  .prep-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .prep-heading > .button {
    min-height: 44px;
  }
  .prep-w-filters {
    padding-inline: 16px;
  }
  .prep-w-stamp,
  .prep-w-status {
    padding-inline: 16px;
  }
  .preparation-workdesk .button {
    min-height: 44px;
  }
  .prep-heading h1 {
    font-size: 22px;
  }
  .prep-query .field {
    min-width: 0;
    flex-basis: 100%;
  }
  .prep-body .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prep-body .form-grid .span-2 {
    grid-column: auto;
  }
  .prep-body input,
  .prep-body textarea,
  .prep-body select,
  .prep-query select {
    font-size: 16px;
  }
  .prep-actions > .button {
    min-height: 44px;
    flex: 1 1 45%;
  }
  .prep-upload-controls > label {
    font-size: 14px;
  }
  .prep-detail-head {
    align-items: flex-start;
  }
  .prep-workbench .table-wrap {
    overflow-x: auto;
  }
}
