/* The shared SB bar belongs to the public editor shell, never project artwork. */
@media screen {
  body[data-eventflow-navigation][data-sb-community]{
    --ef-community-space:var(--sb-community-height,64px);
    padding-bottom:var(--ef-community-space);
    min-height:100dvh;
  }
  body[data-eventflow-navigation][data-sb-community] .app-layout{
    height:calc(100dvh - 199px - var(--ef-community-space));
    min-height:0;
  }
  body[data-eventflow-navigation][data-sb-community].ef-layout-ready{
    height:100dvh;
    min-height:0;
  }
  body[data-eventflow-navigation][data-sb-community].ef-layout-ready .app-layout{height:auto!important}
  body[data-eventflow-navigation][data-sb-community] .toast{bottom:calc(var(--ef-community-space) + 16px)}
  body[data-eventflow-navigation][data-sb-community].ef-layout-compact .library-panel,
  body[data-eventflow-navigation][data-sb-community].ef-layout-compact .inspector-panel{
    bottom:var(--ef-community-space);
    height:calc(100dvh - var(--ef-community-space));
    max-height:calc(100dvh - var(--ef-community-space));
    padding-bottom:0;
  }
  body[data-eventflow-navigation][data-sb-community] .ef-layout-menu{bottom:calc(var(--ef-community-space) + 8px)}
  body[data-eventflow-navigation][data-sb-community] .ef-layout-backdrop{bottom:var(--ef-community-space)}
}
/* Leave room for the zoom tools when phone landscape has little vertical space. */
@media screen and (max-height:500px) {
  body[data-eventflow-navigation][data-sb-community] .empty-state{top:calc((100% - 70px)/2);width:calc(100% - 24px);max-width:440px}
  body[data-eventflow-navigation][data-sb-community] .empty-state>span{display:none}
  body[data-eventflow-navigation][data-sb-community] .empty-state h2{margin:0 0 8px;font-size:18px}
  body[data-eventflow-navigation][data-sb-community] .empty-state p{margin:0 0 10px;line-height:1.4}
  body[data-eventflow-navigation][data-sb-community] .empty-state .btn{min-height:44px}
}
@media screen and (max-height:350px) {
  body[data-eventflow-navigation][data-sb-community] .empty-state p{display:none}
}
@media print {
  #sb-community-bar{display:none!important}
  body[data-eventflow-navigation][data-sb-community]{padding-bottom:0!important}
}
