How internal chemical balance shapes medication performance