Output configuration: TTY detection, JSON/table/quiet modes, color, and the JSON-error-on-stdout contract.