:root {
  --blue: #1a56db;
  --green: #5cd65c;
  --bg: #f4f4f5;
  --text: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
}

h1 {
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 4px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 14px;
  color: #4b5563;
}

.canvas-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  touch-action: none;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  overflow: hidden;
}

#preview-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-buttons {
  display: flex;
  gap: 8px;
}

.photo-buttons button {
  flex: 1;
}

button {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

#download-button {
  background: var(--green);
  color: #063d06;
}

.zoom-label {
  font-size: 13px;
  color: #4b5563;
}

#zoom-slider {
  width: 100%;
}

.hint {
  font-size: 12px;
  color: #6b7280;
}
