Kevin Federline will retain custody of his children and Britney will get monitored visitation -- this after a court hearing lasting nearly three hours.
There's another hearing on October 26.
K-Fed's attorney Mark Vincent Kaplan says both sides presented evidence at today's hearing. He told reporters outside that he and Kevin felt the ruling was "justified."
K-Fed showed up in court. Brit wasn't there. We just got a shot of Spears gassing up her SUV at a Shell gas station in the San Fernando Valley.