/* Shared desktop workspace shell: controls stay anchored while content scrolls. */
@media (min-width: 1051px) {
  .report-modal {
    overflow: hidden;
  }

  .report-workspace {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .report-workspace-header {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }

  .report-workspace-layout {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-items: stretch;
    overflow: hidden;
  }

  .report-editor,
  .report-preview-wrap {
    position: relative;
    top: auto;
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .report-preview-wrap,
  .preview-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .proposal-preview-toolbar,
  .preview-toolbar {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }

  .proposal-document-stack,
  .document-stack {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .report-editor-heading {
    position: sticky;
    top: -24px;
    z-index: 25;
    margin: -24px -24px 0;
    padding: 24px 24px 18px;
    background: #fff;
  }

  .editor-title {
    position: sticky;
    top: -26px;
    z-index: 25;
    margin: -26px -26px 0;
    padding: 26px 26px 18px;
    background: #fff;
  }

  .proposal-preview-toolbar,
  .preview-toolbar {
    top: 0;
  }

  .workspace:not([hidden]) {
    position: fixed;
    inset: 88px 0 0;
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0;
  }

  .workspace:not([hidden]) .workspace-header {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }

  .workspace:not([hidden]) .workspace-grid {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-items: stretch;
    overflow: hidden;
  }

  .workspace:not([hidden]) .editor-pane,
  .workspace:not([hidden]) .preview-shell {
    position: relative;
    top: auto;
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}
/* Shared workspace interaction rules. */
.workspace-accordion > .accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 300ms cubic-bezier(.22, .72, .2, 1),
    opacity 190ms ease;
}

.workspace-accordion > .accordion-body > .accordion-inner {
  min-height: 0;
  overflow: hidden;
}

.workspace-accordion.is-open > .accordion-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.workspace-accordion.is-open > .accordion-body > .accordion-inner {
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .workspace-accordion > .accordion-body {
    transition: none !important;
  }
}
