At midnight on any given school night, a teenager’s phone stays lit — algorithm serving the next video before the last one ends. Infinite scroll. Autoplay. A recommendation engine calibrated to keep a 14-year-old online for one more hour. On August 18, 29 state attorneys general walked into a federal courthouse in Oakland and argued…