yId('layout');
    function setLayout(layoutType, splitRatio) {
      const panes = document.getElementById('panes');
      if (layoutType === 'topbottom') {
        panes.style.setProperty('--top-row-height', `${splitRatio * 100}%`);
        panes.style.gridTemplateRows = "var(--top-row-height) 1fr";
        panes.style.gridTemplateColumns = null;
      } else if (layoutType === 'leftright') {
        panes.style.setProperty('--left-column-width', `${splitRatio * 100}%`);
        panes.style.gridTemplateRo