body {
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  color: #222;
}

.disclaimer {
  background: #fff8e1;
  border: 1px solid #f0c674;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

#mode-select {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.mode-tab {
  padding: 10px 16px;
  border: 1px solid #888;
  border-radius: 6px;
  background: #f4f4f4;
  cursor: pointer;
}

.mode-tab.active {
  background: #2b6cb0;
  color: #fff;
  border-color: #2b6cb0;
}

.mode-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#dropzone {
  border: 2px dashed #999;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
}

#dropzone.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.note {
  color: #666;
  font-size: 0.85rem;
}

#thumbnail-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

#thumbnail-list li {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px;
  width: 120px;
  text-align: center;
  font-size: 0.75rem;
}

#thumbnail-list img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

#thumbnail-list button {
  margin-top: 4px;
}

#analyze-button {
  margin-top: 12px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

#analyze-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#error-message {
  background: #fdecea;
  border: 1px solid #e57373;
  color: #b71c1c;
  padding: 10px 12px;
  border-radius: 6px;
}

#result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

#result-table th,
#result-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 0.85rem;
  text-align: left;
}

tr.duplicate-warning {
  background: #fff3cd;
}

tr.excluded {
  text-decoration: line-through;
  opacity: 0.6;
}

tr.status-failure {
  background: #fdecea;
}

#total-amount {
  font-weight: bold;
  margin-top: 8px;
}

#export-controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
