* { box-sizing: border-box; }
body {
  font-family: -apple-system, system-ui, sans-serif;
  background: #f5f5f4;
  color: #1c1c1a;
  margin: 0;
  padding: 24px 16px 80px;
}
.wrap { max-width: 480px; margin: 0 auto; }
h1 { font-size: 22px; margin-bottom: 4px; }
.sub { font-size: 14px; color: #555; margin-top: 0; }
.step { background: #fff; border-radius: 12px; padding: 16px; margin-top: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.step h2 { font-size: 16px; margin: 0 0 10px; }
select, input[type=file] { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ccc; font-size: 15px; }
.specInfo { margin-top: 10px; font-size: 13px; color: #444; line-height: 1.5; }
.hint { font-size: 13px; color: #666; }
.cropperBox { display:flex; justify-content:center; margin: 10px 0; }
canvas { max-width: 100%; border-radius: 8px; background: #222; touch-action: none; }
input[type=range] { width: 100%; margin: 10px 0; }
button, .step a {
  display: inline-block;
  background: #d97706;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
button:disabled { background: #ccc; cursor: not-allowed; }
.secondaryBtn { background: #fff; color: #d97706; border: 2px solid #d97706; margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #ddd; cursor: pointer; position: relative;
}
.swatch.selected { border: 3px solid #1c1c1a; }
.swatch.selected::after {
  content: "✓"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-size: 16px; font-weight: bold;
  color: #1c1c1a; text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
.progressBar { background: #eee; border-radius: 6px; height: 8px; overflow: hidden; margin-top: 10px; }
.progressFill { background: #d97706; height: 100%; width: 8%; transition: width 0.4s ease; }
#resultStatus { font-size: 14px; margin-bottom: 10px; color: #444; }
#resultActions { margin-top: 12px; }
.installBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1c1c1a;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
}
.installBanner button {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
  flex-shrink: 0;
}
