Would it be bad to make the src attribute optional in the templatestyles tag, such that if <templatestyles/> is put on page Template:Name, it attempts to load sanitized CSS from Template:Name/styles.css?
If that's not acceptable, would it be acceptable to default to the template's page name, such that <templatestyles src="/styles.css"/> would suffice?