/* Sticker Template Generator */
.stg-wrap {
  max-width: 960px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2c2c3a;
  line-height: 1.5;
}

.stg-app {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

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

/* Controls */
.stg-controls {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stg-controls h2 {
  font-size: 1.1rem;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f5f5f7;
}

.stg-field { margin-bottom: 16px; }

.stg-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #6b6b7b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stg-field select,
.stg-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e4;
  border-radius: 8px;
  font-size: 1rem;
  color: #2c2c3a;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.stg-field select:focus,
.stg-field input:focus {
  outline: none;
  border-color: #e22944;
}

.stg-dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stg-dimensions.single {
  grid-template-columns: 1fr;
}

/* Spec info */
.stg-spec-info {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 14px;
  margin: 20px 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.stg-spec-info strong {
  display: block;
  margin-bottom: 4px;
}

.stg-spec-row {
  display: flex;
  justify-content: space-between;
}

.stg-spec-label {
  color: #6b6b7b;
}

/* Download buttons */
.stg-downloads { margin-top: 20px; }

.stg-downloads h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b6b7b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}

.stg-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 8px;
  text-align: center;
  box-sizing: border-box;
}

.stg-btn:active { transform: scale(0.98); }

.stg-btn small {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.8em;
}

.stg-btn-primary {
  background: #e22944;
  color: #fff;
}
.stg-btn-primary:hover { background: #c91f38; }

.stg-btn-secondary {
  background: #1a1a2e;
  color: #fff;
}
.stg-btn-secondary:hover { background: #252545; }

.stg-btn-outline {
  background: #fff;
  color: #1a1a2e;
  border: 2px solid #1a1a2e;
}
.stg-btn-outline:hover { background: #f5f5f7; }

/* Preview */
.stg-preview-panel {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stg-preview-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.stg-preview-area {
  background: #f9f9fb;
  border: 1px solid #e0e0e4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 24px;
  overflow: hidden;
}

.stg-preview-area svg {
  max-width: 100%;
  max-height: 500px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* Legend */
.stg-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stg-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.stg-legend-swatch {
  width: 24px;
  height: 3px;
  border-radius: 2px;
}
