I rarely start a new set of infusions of a caffeinated tea within an hour of going to bed, but may continue infusions started earlier, of any type of tea, or start an herbal tea that won't have caffeine. In the evening, before that last hour or so before bed, any tea, depending on what I had earlier in the day.
Primarily, I sit for focused tea around 2-4 p.m. and this is my main, meditative, intentional pour for the day, going for 6-10 rounds. I usually won't do a focused sitting any later than 7 p.m. However I will settle for a relaxed 3-4 rounds of sencha in the evening, even after 7 p.m., usually 1.5-2g of leaf in a small 60ml "shino gaiwan." I find that the sencha usually just clarifies and "warms" me a bit and does not interfere with my sleep as long as I don't pour too late.