/* KeyLab tab layout (Nov 18 2026). While KeyLab is the open tab:
   - the Studio header (View Config, title, tabs, plans, support) sits ABOVE KeyLab;
   - header and KeyLab run the same width (up to 1500px);
   - the Workstation's transport bar is hidden (KeyLab has its own transport). */
.heritage-ui #root#root#root .min-h-screen:has(> section[style*="display: block"] > #keylabFrame) > .wsf.wsf-top {
  order: -1;
  width: calc(min(1500px, 100%) / (var(--ws-head, 1.15) * var(--ws-zoom, 1))) !important;
  max-width: calc(min(1500px, 100%) / (var(--ws-head, 1.15) * var(--ws-zoom, 1))) !important;
  margin-bottom: 12px !important;
}
.heritage-ui #root#root#root .min-h-screen:has(> section[style*="display: block"] > #keylabFrame) > section:has(> #keylabFrame) { width: min(1500px, 100%) !important; max-width: 1500px !important; }
.heritage-ui #root#root#root .min-h-screen:has(> section[style*="display: block"] > #keylabFrame) > .anvil-transport-dock,
.heritage-ui #root#root#root .min-h-screen:has(> section[style*="display: block"] > #keylabFrame) .ws-transport { display: none !important; }
html.ws-phone .heritage-ui #root#root#root .min-h-screen:has(> section[style*="display: block"] > #keylabFrame) > .wsf.wsf-top { width: 100% !important; max-width: 100% !important; }

/* DAT tab (Nov 19 2026): same as KeyLab. The Studio header (View Config, title, tabs) sits ABOVE
   the DAT recorder, as it does on The Forge, at the recorder's width. It used to fall below the
   recorder, so the top of the DAT page looked cut off. DAT has its own transport. */
.heritage-ui #root#root#root .min-h-screen:has(> section.anvil-dat-workspace[style*="display: block"]) > .wsf.wsf-top {
  order: -1;
  width: calc(min(1500px, 100%) / (var(--ws-head, 1.15) * var(--ws-zoom, 1))) !important;
  max-width: calc(min(1500px, 100%) / (var(--ws-head, 1.15) * var(--ws-zoom, 1))) !important;
  margin-bottom: 12px !important;
}
.heritage-ui #root#root#root .min-h-screen:has(> section.anvil-dat-workspace[style*="display: block"]) > section.anvil-dat-workspace { width: min(1500px, 100%) !important; max-width: 1500px !important; }
.heritage-ui #root#root#root .min-h-screen:has(> section.anvil-dat-workspace[style*="display: block"]) > .anvil-transport-dock,
.heritage-ui #root#root#root .min-h-screen:has(> section.anvil-dat-workspace[style*="display: block"]) .ws-transport { display: none !important; }
html.ws-phone .heritage-ui #root#root#root .min-h-screen:has(> section.anvil-dat-workspace[style*="display: block"]) > .wsf.wsf-top { width: 100% !important; max-width: 100% !important; }
