rimary">Add Channel</button>
                        </div>
                    </div>
                </form>
            </div>
        </dialog>
        <!-- / Create Dialog -->

        <script>
            // updateRecordingCount counts recording channels
            function updateRecordingCount() {
                // Count badges that contain "RECORDING" text (not secondary or negative)
                let count = 0;
                document.querySelectorAll('.ts-badge').forEach(badge => {
          