/* AI Plus 5.3.4 — application page shell reset */
:root{--aip-wp-adminbar-height:0px}
body.admin-bar{--aip-wp-adminbar-height:32px}

html:has(body.aip-workspace-document),
html:has(body.aip-context-workspace){overflow:hidden!important}
body.aip-workspace-document,
body.aip-context-workspace{
  width:100%!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#f6f7fb!important;
}

/* The dedicated workspace template owns the full available browser viewport. */
body.aip-workspace-document .aip-workspace-document__main,
body.aip-workspace-document .aip-workspace-screen,
body.aip-context-workspace .aip-workspace-document__main,
body.aip-context-workspace .aip-workspace-screen{
  width:100vw!important;
  max-width:none!important;
  height:calc(100dvh - var(--aip-wp-adminbar-height))!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  position:relative!important;
  background:#f6f7fb!important;
}

/* Remove old Elementor section/container spacing around the application. */
body.aip-workspace-document .aip-workspace-screen :where(
  .elementor,
  .elementor-section-wrap,
  .elementor-section,
  .elementor-container,
  .elementor-column,
  .elementor-column-wrap,
  .elementor-widget-wrap,
  .elementor-widget,
  .elementor-widget-container,
  .e-con,
  .e-con-inner
),
body.aip-context-workspace .aip-workspace-screen :where(
  .elementor,
  .elementor-section-wrap,
  .elementor-section,
  .elementor-container,
  .elementor-column,
  .elementor-column-wrap,
  .elementor-widget-wrap,
  .elementor-widget,
  .elementor-widget-container,
  .e-con,
  .e-con-inner
){
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.aip-workspace-document .aip-workspace-screen :where(
  .elementor,
  .elementor-section-wrap,
  .elementor-section,
  .elementor-container,
  .elementor-column,
  .elementor-column-wrap,
  .elementor-widget-wrap,
  .elementor-widget-ai_plus_app,
  .elementor-widget-ai_plus_app>.elementor-widget-container
),
body.aip-context-workspace .aip-workspace-screen :where(
  .elementor,
  .elementor-section-wrap,
  .elementor-section,
  .elementor-container,
  .elementor-column,
  .elementor-column-wrap,
  .elementor-widget-wrap,
  .elementor-widget-ai_plus_app,
  .elementor-widget-ai_plus_app>.elementor-widget-container
){height:100%!important}
body.aip-workspace-document .aip-workspace-screen .aip-app,
body.aip-context-workspace .aip-workspace-screen .aip-app{
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
}

/* A managed workspace never renders the ordinary site shell. */
body.aip-context-workspace :where(.aip-site-header,.site-header,.aip-site-footer,.site-footer){display:none!important}

@media(max-width:782px){body.admin-bar{--aip-wp-adminbar-height:46px}}
