FilesPage had grown past 500 lines by carrying the tree, table, grid, card visuals and all pure helpers inline. Extract file-helpers.ts, FileVisuals, FilesTree, FilesTable and FilesGrid under pages/files/, leaving FilesPage as the orchestrator. Behaviour is unchanged; the pinned-card radius is corrected to 10 to match the design.