I work as long as I want in theory, but I try to work 8hr/day, which is expected from me, but of course at least 2hr/day is spent on meetings. Sometimes I don't "work" at all (I mean coding), usually I get around 2-4h to think and code.
I'm not worried about layoffs, while I usually don't believe in myself I feel I still have a strong skills that are needed on the market and the worst that can happen is a little smaller salary in another company.