/* Keep the editor shell navigable and the wordmark within the collapsed rail. */
body.ai-editor-open[data-theme][data-current-tab] #app > header {
  display: flex !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}
body.ai-editor-open[data-theme][data-current-tab] #ai-agent-editor { scroll-margin-top: 72px; }
@media (min-width: 981px) {
  body.sidebar-desktop-mode[data-theme][data-current-tab] #app > header .header-brand-word {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--shell-sidebar, 208px);
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding-left: 18px;
    color: var(--release-text);
    font: 650 18px/1 Inter, Arial, sans-serif;
    letter-spacing: -.4px;
    white-space: nowrap;
    pointer-events: none;
  }
  body.sidebar-desktop-mode.sidebar-collapsed[data-theme][data-current-tab] #app > header .header-brand-word {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 68px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    font: 650 10px/1 Inter, Arial, sans-serif !important;
    letter-spacing: -.2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}

@media (max-width: 600px) {
  body.ai-editor-open[data-theme][data-current-tab] #ai-agent-editor { scroll-margin-top: 124px; }
}
