.ocr-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 16px;
  border: 1px dashed #aab8e7;
  border-radius: 14px;
  background: #f7f9ff;
  margin-bottom: 4px;
}
.ocr-box #ocr-result { grid-column: 1 / -1; }
.diagnosis-search { margin-bottom: 10px; }
.diagnosis-options { max-height: 250px; overflow: auto; padding-right: 4px; }
.diagnosis-options label[hidden] { display: none; }
.diagnosis-empty { padding: 18px; text-align: center; color: var(--muted); }
.package-summary { min-height: 48px; padding: 12px; border-radius: 11px; background: #f6f8fc; color: #596376; line-height: 1.8; }
.parameter-panel { padding: 16px; border: 1px solid #e1e6f1; border-radius: 14px; background: #fafbfe; }
.wavelength-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wavelength-option { border: 1px solid #dce2ed; border-radius: 10px; background: #fff; color: #596376; padding: 10px; }
.wavelength-option.selected { border-color: var(--primary); background: var(--soft); color: var(--primary); font-weight: 750; }
.custom-wavelength { margin: 12px 0 0; }
.custom-wavelength input { flex: 1; min-width: 130px; }
.protocol-card { margin-top: 12px; padding: 14px; border-radius: 13px; background: #fff; border: 1px solid #e5e9f1; }
.protocol-card .button.danger { padding: 7px 10px; }
.parameter-empty { padding: 22px; }
.photo-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.photo-preview img { width: 100%; height: 112px; object-fit: cover; border-radius: 11px; border: 1px solid #e1e6ef; }
.risk-item { border-left: 4px solid #e2b400; }
.identity-choice-list { display: grid; gap: 12px; margin: 22px 0; }
.identity-choice { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px; border: 1px solid #dce3f2; border-radius: 14px; background: #f8f9ff; color: #26324a; text-align: left; cursor: pointer; }
.identity-choice strong { font-size: 17px; }
.identity-choice span { color: #6c7688; }
.identity-choice:hover { border-color: var(--primary); background: var(--soft); }

@media (max-width: 760px) {
  .ocr-box { grid-template-columns: 1fr; }
  .ocr-box #ocr-result { grid-column: auto; }
  .wavelength-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .wavelength-grid, .photo-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
