.quality-warning {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #ead3a9;
  border-radius: 10px;
  background: #fff8e9;
  color: #725524;
  font-size: 13px;
}

.quality-warning b {
  font-size: 14px;
}

.legend-review {
  display: grid;
  gap: 12px;
  max-height: 390px;
  margin-top: 18px;
  padding-right: 4px;
  overflow: auto;
}

.legend-row > b {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.legend-row > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 6px;
}

.detected-swatch {
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  cursor: pointer;
}

.detected-swatch i {
  display: block;
  height: 34px;
  border-radius: 5px;
  background: var(--swatch);
}

.detected-swatch input {
  width: 100%;
  margin-top: 4px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}

.row-capture,
.swatch-editor {
  max-width: 650px;
  margin: auto;
}

.swatch-editor {
  position: absolute;
  z-index: 3;
  inset: 100px 42px auto;
  border-radius: 14px;
  background: #fbfdfb;
  box-shadow: 0 16px 55px rgba(23, 59, 54, .25);
}

.compact-upload {
  min-height: 145px;
  margin-top: 18px;
}

.row-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-top: 14px;
  border-radius: 9px;
  background: #edf2ef;
  object-fit: contain;
}

.row-chips {
  justify-content: center;
}

.capture-progress {
  margin: 0 0 8px !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .legend-row > div {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .swatch-editor {
    inset: 80px 12px auto;
  }

  .detected-swatch {
    padding: 3px;
  }
}
