
/* Keep fullscreen workspace controls above the application navigation. */
.app-main:has(.tool-workspace.is-full-page) {
  isolation: auto;
}

.app.vagle-workspace .tool-workspace.is-full-page .tw-header-actions > button[aria-label="Exit full page"] {
  width: auto !important;
  padding-inline: 12px !important;
}

.app.vagle-workspace .tool-workspace.is-full-page .tw-header-actions > button[aria-label="Exit full page"] .tw-btn-label {
  display: inline;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

@media (max-width: 900px) {
  .app.vagle-workspace .tool-workspace.is-full-page .tw-header {
    padding-top: 52px !important;
  }

  .app.vagle-workspace .tool-workspace.is-full-page .tw-header-actions > button[aria-label="Exit full page"] {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9;
    width: max-content !important;
    background: var(--surface-2, #fff) !important;
  }
}
