/* AMCAEN Book Creator 35.3 — stability + tab/cover repair */
#bookView .studio-tabs button[data-tab="write"],
#bookView .studio-tabs button[data-tab="design"],
#bookView .studio-tabs button[data-tab="preview"],
#bookView .studio-tabs button[data-tab="publish"]{cursor:pointer}

#bookView:not(.design-library-open) #bookDesignLibrary{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#bookView.design-library-open #bookDesignLibrary{
  display:grid!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#bookView:not(.design-library-open) .book-layout{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#bookView:not(.design-library-open) #pageCanvas,
#bookView:not(.design-library-open) #pageCanvasRight{
  visibility:visible!important;
  opacity:1!important;
}
#bookView.amcaen-write-ready #pageCanvas{
  cursor:text!important;
  pointer-events:auto!important;
}
#bookDesignLibrary .dl-card[data-coverpreset]{cursor:pointer!important}
#bookDesignLibrary .dl-card[data-coverpreset].selected{
  outline:2px solid #9b73ff!important;
  outline-offset:1px!important;
}
#applyDlCover.amcaen-cover-saved{
  box-shadow:0 0 0 2px rgba(77,219,145,.35)!important;
}
