After you file

The problem was that the California apply-refund-to-next-year box says "leave blank to apply the entire amount", which does not work.  As soon as I wrote an amount (my total) in, that amount was applied.  There should (for both state and federal) be a check-box for "apply all".