.capture-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: -6px 0 16px;
}

.capture-guide span {
  padding: 9px 10px;
  border-radius: 12px;
  background: #f2edf5;
  color: #64566d;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.upload-zone.has-image {
  align-items: stretch;
}

.upload-content {
  width: min(100%, 620px);
}

.source-preview {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 15px;
  background: #eee8f2;
  overflow: hidden;
}

.source-preview img {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.quality-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #d9d0df;
  border-radius: 17px;
  background: #fbfafc;
}

.quality-panel.passed {
  border-color: #bdd7c4;
  background: #f7fbf8;
}

.quality-panel.warning {
  border-color: #e2c8ad;
  background: #fffaf4;
}

.quality-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quality-head strong,
.quality-head small {
  display: block;
}

.quality-head small {
  margin-top: 3px;
  color: #766b7d;
}

.quality-score {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eee8f2;
  font-size: 12px;
  font-weight: 850;
}

.quality-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.quality-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid #e4dce8;
}

.quality-check strong,
.quality-check small {
  display: block;
}

.quality-check strong {
  font-size: 12px;
}

.quality-check small {
  margin-top: 2px;
  color: #786d7f;
  font-size: 11px;
}

.quality-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.quality-check.ok .quality-icon {
  background: #dff1e4;
  color: #2d6a3e;
}

.quality-check.bad .quality-icon {
  background: #f6e4d4;
  color: #8a4b22;
}

.quality-message {
  margin: 12px 0 0;
  color: #65596d;
  line-height: 1.45;
  font-size: 13px;
}

.analysis-hint {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f2edf5;
  color: #65576e;
  line-height: 1.45;
  font-size: 13px;
}

@media (max-width: 720px) {
  .capture-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .quality-checks {
    grid-template-columns: 1fr;
  }
}
