/* ============================================================
   ECR // RC7.7B // UNIVERSAL READER MODULE SHELL
   Applies only to full independent workspaces.
   Compact manuscript-side panels remain untouched.
   ============================================================ */

/* ------------------------------------------------------------
   FULL MODULES ARE WORKSPACES, NOT MODALS
   ------------------------------------------------------------ */

body.ecr-full-workspace
.workspace-panel:not(.hidden)
.panel-head
[data-close-panel]{
  display:none!important;
}

body.ecr-full-workspace
.workspace-panel:not(.hidden)
.panel-foot
[data-close-panel]{
  display:none!important;
}

/* Preserve status/footer copy but remove duplicate escape action. */
body.ecr-full-workspace
.workspace-panel:not(.hidden)
.panel-foot{
  min-height:40px;
}

/* ------------------------------------------------------------
   R18 // ONE NAVIGATION AUTHORITY
   R17 global header + Reader Workspace menu owns navigation.
   ------------------------------------------------------------ */

body.ecr-full-workspace .ecr-full-back{display:none!important;}
body.ecr-full-workspace .workspace-panel:not(.hidden) > .panel-foot{display:none!important;}

/* ------------------------------------------------------------
   MODULE-AWARE SYSTEM BAR
   Manuscript-specific controls do not belong inside Board,
   Desk, Messages, Marks, or Final Review.
   ------------------------------------------------------------ */

body.ecr-full-workspace
.system-bar
.sys-left
.sys-item{
  display:none!important;
}

body.ecr-full-workspace
.system-bar
#syncLabel{
  display:none!important;
}

body.ecr-full-workspace
.system-bar
.atmos-mode{
  display:none!important;
}

body.ecr-full-workspace
.system-bar
#stageLabel{
  display:none!important;
}

body.ecr-full-workspace
.system-bar
#ecrModuleContextLabel{
  display:block!important;
  margin-top:3px;
  color:#68776f;
  font:700 7px/1.2 "Courier New",monospace;
  letter-spacing:.11em;
  text-transform:uppercase;
}

body.ecr-full-workspace
.system-bar
#readerModeBadge{
  min-width:max-content;
}

/* ------------------------------------------------------------
   DESKTOP MODULE BAR
   ------------------------------------------------------------ */

@media(min-width:1101px){

  body.ecr-full-workspace .system-bar{
    grid-template-columns:
      minmax(230px,.8fr)
      minmax(300px,1fr)
      auto;
  }

  body.ecr-full-workspace
  .system-bar
  .sys-center{
    min-width:0;
  }

  body.ecr-full-workspace
  .system-bar
  .sys-right{
    gap:9px;
  }
}

/* ------------------------------------------------------------
   SMALLER WORKSPACE PRESENTATION
   ------------------------------------------------------------ */

@media(max-width:1100px){

  body.ecr-full-workspace
  .system-bar
  #ecrModuleContextLabel{
    display:none!important;
  }
}
