/* Internal workspace chrome only. Public pages and tool result footers keep their controls. */
.app-shell > main > footer,
.commerce-shell > .commerce-main > .commerce-footer,
#text-workspace > .text-page-note {
  display: none !important;
}

/* Remove only the sidebar's help/signature area, retaining account links. */
.sidebar > .sidebar-bottom,
.commerce-sidebar .sidebar-mini,
#mobile-navigation [data-open-help] {
  display: none !important;
}

/* The scrolling sidebar has top padding. Extend the opaque sticky header
   through that inset so navigation items cannot show above the wordmark. */
@media (min-width: 981px) {
  html[data-color-mode] body :is(.sidebar,.commerce-sidebar) > .ux-sidebar-head::before {
    content: "";
    position: absolute;
    inset: -24px -12px -1px;
    z-index: -1;
    background: var(--brand-surface, #19191E);
    pointer-events: auto;
  }
}

/* Shared breathing room after every workspace, independent of hidden footers.
   Fullscreen page/video editors retain their own exact viewport dimensions. */
body:not(.ve-fullscreen):not(.pg-editor-open) .app-shell > main {
  padding-bottom: max(64px, env(safe-area-inset-bottom, 0px)) !important;
}
body:not(.ve-fullscreen):not(.pg-editor-open) .commerce-shell > .commerce-main {
  padding-bottom: max(64px, env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 739px) {
  body:not(.ve-fullscreen):not(.pg-editor-open) .app-shell > main,
  body:not(.ve-fullscreen):not(.pg-editor-open) .commerce-shell > .commerce-main {
    padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Match the inset of the audio option label when its preview hint is shown. */
#camufla-audio-preview-note { margin: 0 18px 16px; }
