Detectives fear the 19-year-old is continuing to devise plans to carry out mass terror attacks against police and transgender people while in a prison cell, a court heard.