SAN FRANCISCO — In a summer of political and racial tumult, young Americans are in a dour mood: pessimistic about the fairness of their economic system, questioning the greatness of the United States and deeply skeptical of electoral politics.

A poll of young people ages 18-30 finds that an overwhelming 90 percent think the two-party political system has real – though fixable – problems or that it is “seriously broken.” Three-quarters believe the U.S. is “falling behind” or “failing” as a nation.

Just over half say the chance to get ahead economically is reserved for only a few people at the top.

Though the new GenForward survey is a poll of all young people, not necessarily registered or likely voters, it nevertheless shows clear discontent with the two major-party candidates for president. Only 39 percent of young people have a favorable opinion of Hillary Clinton. Just 19 percent think well of Donald Trump.

The generation that is the most educated, diverse and indebted in U.S. history is still pining for the candidate who only this week left the race: Vermont Sen. Bernie Sanders.

“Millennials, unfortunately, are subject to an economic and political future that is not of their own making,” said Sarah Swanbeck, executive director of the Center on Governing & Investing in the Future at the Goldman School of Public Policy at the University of California, Berkeley. “It’s no surprise then that young adults across the country have increasingly turned to ‘political outsiders’ promising to reform the system.”

GenForward is a survey by the Black Youth Project at the University of Chicago with the Associated Press-NORC Center for Public Affairs Research. The first-of-its-kind poll pays special attention to young adults of color, highlighting how race and ethnicity shape a new generation’s opinions.