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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #e8eaf0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 24px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 600;
}

.section {
  background: #ececec;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.row:last-child {
  margin-bottom: 0;
}

label {
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
}

input[type="text"],
input[type="number"],
select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.88rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #4a9eff;
}

input[type="text"].num-input {
  width: 80px;
}

input[type="text"].dest-input {
  flex: 1;
  min-width: 150px;
}

input[type="number"].small-input {
  width: 60px;
}

input[type="range"] {
  width: 140px;
  cursor: pointer;
  accent-color: #4a9eff;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4a9eff;
  cursor: pointer;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #444;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sep {
  color: #bbb;
  font-size: 1.1rem;
  padding: 0 4px;
}

.preview-wrap {
  background: #0a0a0a;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 14px;
  overflow: hidden;
}

canvas {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
  border-radius: 4px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.04em;
}

.btn-save {
  background: #27ae60;
  color: #fff;
  width: 100%;
}

.btn-save:hover {
  background: #1e8449;
}

.status {
  font-size: 0.78rem;
  color: #777;
  margin-top: 8px;
  text-align: left;
}

select {
  cursor: pointer;
}