/* AMCAEN 35.9 — full-screen Book Creator shell. UI only; no editor-engine changes. */
html,body,#app,.shell,#bookView,.book-room{width:100%!important;max-width:none!important}
html,body,#app{height:100%!important;min-height:100%!important}
body{margin:0!important;overflow:hidden!important}
.shell{margin-left:0!important;height:100vh!important;overflow:hidden!important}
#bookView{position:relative!important;width:100vw!important;height:100vh!important;min-height:100vh!important;overflow:hidden!important}
#bookView>.studio-header{width:100vw!important;max-width:none!important;left:0!important;right:0!important}
#bookView:not(.design-library-open) .book-layout{width:100vw!important;max-width:none!important}

/* The old Design Studio had a historical 205–220px left offset for a sidebar
   that no longer exists on the dedicated Book Creator route. Remove it. */
#bookView.design-library-open #bookDesignLibrary{
  position:fixed!important;
  inset:0!important;
  left:0!important;right:0!important;top:0!important;bottom:0!important;
  width:100vw!important;height:100vh!important;max-width:none!important;
  margin:0!important;border-radius:0!important;
  grid-template-columns:minmax(170px,14vw) minmax(245px,20vw) minmax(430px,1fr) minmax(275px,23vw)!important;
  grid-template-rows:58px minmax(0,1fr) minmax(135px,18vh)!important;
}
#bookDesignLibrary .dl-topbar{grid-column:1/5!important;width:100%!important;max-width:none!important}
#bookDesignLibrary .dl-nav,#bookDesignLibrary .dl-library,#bookDesignLibrary .dl-stage,#bookDesignLibrary .dl-inspector{min-width:0!important;max-width:none!important}
#bookDesignLibrary .dl-stage{width:100%!important;overflow:hidden!important}
#bookDesignLibrary .dl-bottom{min-width:0!important;width:auto!important}
#bookDesignLibrary .dl-book{max-width:min(430px,72%)!important;max-height:78%!important}

/* Later cover-control UI must also use the complete center canvas. */
#bookDesignLibrary .cover-control-center,
#bookDesignLibrary .continuum-cover-control-center,
#bookDesignLibrary [class*="control-center"],
#bookDesignLibrary [class*="smart-remote"]{max-width:none!important}

@media(max-width:1280px){
 #bookView.design-library-open #bookDesignLibrary{
  grid-template-columns:155px 225px minmax(360px,1fr) 260px!important;
  grid-template-rows:56px minmax(0,1fr) 130px!important;
 }
 #bookDesignLibrary .dl-top-tabs button{min-width:68px!important;padding-inline:8px!important}
}
@media(max-width:1020px){
 #bookView.design-library-open #bookDesignLibrary{
  grid-template-columns:145px 210px minmax(320px,1fr) 245px!important;
 }
}
