.rs-color-row.is-cp,
.ss-color-row.is-cp {
  position: relative;
  width: 100%;
}

.cp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cp__swatch {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 3px;
  background: #0c0c0c;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #00000055;
}

.cp__swatch-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cp-color, #c9adff) 35%, transparent);
}

.cp__hex {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #101010;
  color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
}

.cp__hex:focus {
  border-color: #c9adff66;
  box-shadow: 0 0 0 3px rgba(201, 173, 255, 0.12);
}

.cp__pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: 260px;
  padding: 12px;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1a1a, #121212);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px #000;
}

.cp__sv {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  cursor: crosshair;
  background: #fff;
  touch-action: none;
}

.cp__sv-white,
.cp__sv-black {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cp__sv-white {
  background: linear-gradient(to right, #fff, transparent);
}

.cp__sv-black {
  background: linear-gradient(to top, #000, transparent);
}

.cp__knob {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px #00000066, 0 4px 10px #00000080;
  pointer-events: none;
}

.cp__hue {
  position: relative;
  margin-top: 12px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
  touch-action: none;
}

.cp__hue .cp__knob {
  top: 50%;
  width: 18px;
  height: 18px;
}

.cp__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.cp__meta label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8d8d92;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cp__meta input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  background: #0d0d0d;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.cp__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.cp__eye {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  background: #0d0d0d;
  color: #c9adff;
  cursor: pointer;
}

.cp__eye:hover { border-color: #c9adff55; }

.cp__presets {
  display: flex;
  flex: 1;
  gap: 6px;
  flex-wrap: wrap;
}

.cp__preset {
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.cp__preset.is-on {
  box-shadow: 0 0 0 2px #090909, 0 0 0 4px #c9adff;
}
