/* Page flow belongs to the page type. Chat owns its scroll; documents use the browser. */
html {
  min-width: 0;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.seed-workspace-page,
body.seed-document-page {
  width: 100%;
  min-width: 0;
}

body.seed-document-page {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: auto;
}

body.seed-workspace-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.seed-document-page > main,
.seed-document-page > section,
.seed-workspace-page > main {
  min-width: 0;
}

@media (max-width: 1199px) {
  body.seed-workspace-page:has(> .mobile-workspace:not(.is-workspace-ready)) {
    height: auto;
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .seed-context-menu .context-menu-item {
    min-height: 44px;
  }

  .seed-context-menu {
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .inbox-toast {
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }
}
