.part-picker {
  position: absolute;
  z-index: 5;
  width: 210px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  background: rgba(11, 18, 32, 0.94);
  border: 1px solid var(--border, #334155);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.part-picker[hidden] {
  display: none;
}

.part-picker-head,
.part-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.part-picker-head span {
  font-weight: 700;
}

.part-picker button {
  padding: 4px 10px;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  cursor: pointer;
}

.part-picker-head button {
  padding: 0 6px;
  border: none;
  font-size: 16px;
  line-height: 1;
}

.part-picker-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.part-picker .part-picker-swatches .swatch {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.viewer-head .seg {
  flex-wrap: nowrap;
}

.part-picker input[type="color"] {
  width: 60px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  background: none;
}
