* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

header h1 {
  font-size: 20px;
}

header a,
.tip a {
  color: #2563eb;
  text-decoration: none;
}

.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-box select {
  width: 80px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
}

.search-box button {
  width: 72px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
}

#scanArea {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}

#status,
#resultInfo {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #4b5563;
  flex-wrap: wrap;
}

.empty {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
}

.tip {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.narrow form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.narrow input {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.narrow button {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
}

#uploadStatus {
  margin: 10px 0;
  font-size: 14px;
}