html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 220px;
}

.preview {
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rowLabel {
  flex: 0 0 auto;
  width: 30px;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
}

.track {
  position: relative;
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.08);
}

.hueTrack {
  background: linear-gradient(to right, hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%), hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(0, 100%, 50%));
}

.thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #2f6df6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

@media (max-width: 340px) {
  .panel {
    max-width: 168px;
  }
  .preview {
    height: 40px;
  }
  .rowLabel {
    width: 24px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thumb {
    transition: none;
  }
}
