\
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", Segoe UI, Roboto, sans-serif;
  background: #f6f7fb;
  color: #111;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
}

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; margin: 0 0 8px 0; }

.card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.row {
  display: flex;
  gap: 10px;
  align-items: end;
}

.col { flex: 1; min-width: 160px; }
.col-grow { flex: 3; min-width: 200px; }

.mt { margin-top: 10px; }

label { font-size: 13px; display: block; margin-bottom: 4px; color: #333; }

input[type="text"], select, input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d6e0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.btn {
  padding: 10px 12px;
  border: 1px solid #d0d6e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.btn.primary {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.muted { color: #667085; }
.small { font-size: 12px; }

.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.result-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
  padding: 10px;
}

.result-card.no-image {
  grid-template-columns: 1fr;
}

.thumb {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #f0f2f6;
  object-fit: contain;
  border: 1px solid #e5e7ef;
}

.code { font-weight: 700; font-size: 15px; }
.desc { margin-top: 4px; font-size: 13px; color: #333; }
.meta { margin-top: 6px; font-size: 12px; color: #667085; }

.footer { padding: 10px 4px; }
.ocr {
  background: #f8fafc;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  white-space: pre-wrap;
}


.modal.hidden { display: none; }
.modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 1000;
}
.modal-content {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5e7ef;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.modal-title { font-weight: 800; }
.modal-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.modal-images img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e5e7ef;
  background: #f0f2f6;
}
