* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.container {
  width: min(1000px, calc(100% - 32px));
  margin: 30px auto;
}

h1 {
  margin-bottom: 8px;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.paste-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}

.paste-zone.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

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

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #eef2ff;
}

.preview-wrapper {
  margin-top: 16px;
}

.preview-wrapper img {
  max-width: 100%;
  max-height: 400px;
  display: block;
  border-radius: 12px;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}