.pdc-illustrator-matching {
  grid-column: 1 / -1;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  color: #18202b;
}

.pdc-illustrator-matching__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e7ebf0;
  padding-bottom: 12px;
}

.pdc-illustrator-matching h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.pdc-illustrator-matching p {
  margin: 0;
  color: #687385;
  font-size: 13px;
}

.pdc-illustrator-status {
  color: #687385;
  font-size: 13px;
  white-space: nowrap;
}

.pdc-illustrator-summary,
.pdc-illustrator-progress,
.pdc-illustrator-stats {
  margin-top: 12px;
  color: #384454;
  font-size: 14px;
}

.pdc-illustrator-controls,
.pdc-illustrator-filters,
.pdc-illustrator-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pdc-illustrator-filters input[type="search"] {
  min-height: 36px;
  min-width: 240px;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
}

.pdc-illustrator-filters .is-active {
  border-color: #1a73e8;
  color: #155fc2;
}

.pdc-illustrator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pdc-illustrator-item {
  border: 1px solid #e0e5ec;
  border-radius: 6px;
  padding: 12px;
  background: #fafbfd;
}

.pdc-illustrator-item__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.pdc-illustrator-code {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e7ebf0;
}

.pdc-illustrator-code.is-missing {
  color: #a43b32;
}

.pdc-illustrator-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pdc-illustrator-file {
  min-width: 0;
  font-size: 11px;
  color: #687385;
}

.pdc-illustrator-file img,
.pdc-illustrator-file__icon {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: contain;
  border: 1px solid #d7dce3;
  border-radius: 4px;
  background: #fff;
}

.pdc-illustrator-file__icon {
  display: grid;
  place-items: center;
  color: #687385;
  font-weight: 700;
}

.pdc-illustrator-file__name {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .pdc-illustrator-matching__head {
    display: block;
  }

  .pdc-illustrator-status {
    display: block;
    margin-top: 8px;
  }
}

.pdc-illustrator-list-toolbar {
  position: sticky;
  top: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d7dce3;
  background: #f7f9fc;
}

.pdc-illustrator-results { display: block; }

.pdc-illustrator-page-info {
  margin-left: auto;
  color: #687385;
  font-size: 13px;
}

.pdc-illustrator-list {
  border: 1px solid #d7dce3;
  border-top: 0;
  background: #fff;
}

.pdc-illustrator-list-row {
  display: grid;
  grid-template-columns: 40px minmax(130px, 1.1fr) minmax(160px, 1.5fr) minmax(120px, .9fr) minmax(160px, 1.4fr) 82px;
  min-height: 50px;
  border-top: 1px solid #e7ebf0;
  align-items: center;
}

.pdc-illustrator-list-row:first-child { border-top: 0; }
.pdc-illustrator-list-row:not(.pdc-illustrator-list-head):hover { background: #f5f9ff; }
.pdc-illustrator-list-row.is-selected { background: #fbfdff; }
.pdc-illustrator-list-head { min-height: 42px; background: #eef4fb; color: #384454; font-weight: 700; font-size: 13px; }

.pdc-illustrator-cell {
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.pdc-illustrator-cell--check { display: grid; place-items: center; }
.pdc-illustrator-cell--check input { width: 17px; height: 17px; }
.pdc-illustrator-cell--item { font-weight: 700; }
[data-pdc-illustrator-sort] { cursor: pointer; }
[data-pdc-illustrator-sort]:hover { color: #155fc2; }
.pdc-illustrator-status-complete { color: #237a45; }
.pdc-illustrator-status-partial { color: #a56700; }
.pdc-illustrator-status-missing { color: #a43b32; }

.pdc-illustrator-detail {
  grid-column: 1 / -1;
  margin: 0 8px 8px 40px;
  border-left: 3px solid #c7dafa;
  background: #fafbfd;
}

.pdc-illustrator-code-group { padding: 8px 12px; border-bottom: 1px solid #e7ebf0; }
.pdc-illustrator-code-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 700; font-size: 13px; }
.pdc-illustrator-mini-button { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.pdc-illustrator-image-row { display: grid; grid-template-columns: 24px 56px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 64px; padding: 4px 0; }
.pdc-illustrator-image-row > input { width: 17px; height: 17px; }
.pdc-illustrator-image-row img,
.pdc-illustrator-file__icon--small { width: 52px; height: 52px; object-fit: contain; border: 1px solid #d7dce3; border-radius: 4px; background: #fff; }
.pdc-illustrator-file__icon--small { display: grid; place-items: center; font-size: 11px; }
.pdc-illustrator-image-info { min-width: 0; display: grid; gap: 3px; }
.pdc-illustrator-image-info strong, .pdc-illustrator-image-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdc-illustrator-image-info small { color: #687385; font-size: 11px; }
.pdc-illustrator-missing-option { display: inline-flex; gap: 7px; align-items: center; padding: 8px 0; color: #a43b32; font-size: 13px; }
.elh-missing-code-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; margin: 8px 0; white-space: nowrap; }
.elh-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; letter-spacing: .02em; }
.elh-missing-label { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: #a43b32; font-size: 13px; }
.elh-missing-label input { width: 16px; height: 16px; }
.elh-identifier-status { display: inline-block; margin: 6px 0; color: #687385; font-size: 12px; }
.elh-identifier-status.is-complete { color: #237a45; }
.pdc-illustrator-more { margin-top: 6px; min-height: 28px; font-size: 12px; }
.pdc-illustrator-page-footer { padding: 10px 4px; color: #687385; font-size: 12px; }

@media (max-width: 700px) {
  .pdc-illustrator-list-toolbar { top: 0; }
  .pdc-illustrator-page-info { width: 100%; margin-left: 0; }
  .pdc-illustrator-list-head { display: none; }
  .pdc-illustrator-list-row { grid-template-columns: 34px minmax(0, 1fr) 76px; min-height: 64px; }
  .pdc-illustrator-list-row > .pdc-illustrator-cell:nth-child(3),
  .pdc-illustrator-list-row > .pdc-illustrator-cell:nth-child(4),
  .pdc-illustrator-list-row > .pdc-illustrator-cell:nth-child(5) { grid-column: 2; padding-top: 0; padding-bottom: 0; font-size: 12px; }
  .pdc-illustrator-list-row > .pdc-illustrator-cell:nth-child(6) { grid-column: 3; grid-row: 1 / span 3; }
  .pdc-illustrator-detail { margin-left: 8px; }
}
