* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

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

h1 {
  margin-bottom: 8px;
}

.sub {
  color: #94a3b8;
  margin-bottom: 24px;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 2px dashed #475569;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
  color: #cbd5e1;
  transition: 0.2s ease;
}

.dropzone.dragover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
}

.dropzone input {
  display: none;
}

.preview-wrap {
  margin-bottom: 16px;
}

.preview-wrap img {
  display: none;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #020617;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 600;
}

textarea,
select,
input[type="number"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #e2e8f0;
  padding: 12px;
  margin-bottom: 16px;
  font: inherit;
}

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

button {
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

#statusText {
  margin-bottom: 12px;
  color: #cbd5e1;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #020617;
  border-radius: 10px;
  padding: 14px;
  min-height: 120px;
  color: #cbd5e1;
}
