/* ============================================================
   ECR // RC7.8A // READER BOARD V2
   Independent controlled discussion workspace.
   ============================================================ */

body.ecr-full-workspace #boardPanel{
  --rb-shell:#0c2118;
  --rb-shell-2:#112b20;
  --rb-paper:#f4f1e8;
  --rb-bg:#e5e7e2;
  --rb-ink:#24352d;
  --rb-muted:#66766e;
  --rb-rule:#c7cec9;
  --rb-green:#214a38;
}

body.ecr-full-workspace
#boardPanel
.reader-board-workspace{
  display:grid;
  grid-template-columns:
    minmax(250px,290px)
    minmax(450px,1fr)
    minmax(270px,320px);
  height:calc(100vh - 154px);
  min-height:0;
  background:var(--rb-bg);
}

body.ecr-full-workspace
#boardPanel
.reader-board-nav{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  padding:20px 16px;
  overflow:hidden;
  border-right:1px solid #29463a;
  background:
    linear-gradient(
      180deg,
      var(--rb-shell-2),
      var(--rb-shell)
    );
  color:#e6e8e1;
}

body.ecr-full-workspace
#boardPanel
.reader-board-nav-title{
  display:grid;
  gap:5px;
  margin-bottom:16px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-nav-title strong{
  color:#f3f0e7;
  font:500 20px/1.15 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-nav-title small{
  color:#9eaea6;
  font:11px/1.45 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-nav
.workspace-eyebrow{
  color:#9db3a8;
}

body.ecr-full-workspace
#boardPanel
.reader-board-new{
  display:grid;
  gap:3px;
  width:100%;
  min-height:50px;
  margin:0 0 15px;
  padding:10px 12px;
  border:1px solid #5f8271;
  background:#f0eee5;
  color:#18382b;
  text-align:left;
}

body.ecr-full-workspace
#boardPanel
.reader-board-new span{
  font:800 9px/1.2 monospace;
  letter-spacing:.08em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-new small{
  font:11px/1.3 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-search{
  display:grid;
  gap:5px;
  margin-bottom:12px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-search span{
  color:#95a79e;
  font:700 8px/1.2 monospace;
  letter-spacing:.1em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-search input{
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  padding:8px 10px;
  border:1px solid #3c5b4d;
  background:#0a1912;
  color:#edf0eb;
  font:12px/1.3 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-filters{
  display:grid;
  gap:4px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-filters button{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  min-height:38px;
  padding:0 10px;
  border:1px solid transparent;
  background:transparent;
  color:#c9d2cd;
  text-align:left;
}

body.ecr-full-workspace
#boardPanel
.reader-board-filters button span{
  font:700 8px/1.2 monospace;
  letter-spacing:.08em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-filters button b{
  min-width:25px;
  padding:4px 6px;
  border:1px solid #355347;
  color:#aebdb5;
  font:700 8px/1 monospace;
  text-align:center;
}

body.ecr-full-workspace
#boardPanel
.reader-board-filters button.active{
  border-color:#45695a;
  background:#18382b;
  color:#fff;
}

body.ecr-full-workspace
#boardPanel
.reader-board-rule{
  height:1px;
  margin:15px 0;
  background:#29473a;
}

body.ecr-full-workspace
#boardPanel
.reader-board-index-label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:0 2px 8px;
  color:#95a79e;
  font:700 8px/1.2 monospace;
  letter-spacing:.08em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-thread-index{
  min-height:0;
  overflow:auto;
  padding-right:3px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-thread-index
.thread-index-row{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  margin:0 0 6px;
  padding:11px;
  border:1px solid #29473a;
  background:#0b1a13;
  color:#dce3de;
  text-align:left;
}

body.ecr-full-workspace
#boardPanel
.reader-board-thread-index
.thread-index-row.active{
  border-color:#8aa696;
  background:#18382b;
}

body.ecr-full-workspace
#boardPanel
.thread-index-row span{
  min-width:0;
  display:grid;
  gap:4px;
}

body.ecr-full-workspace
#boardPanel
.thread-index-row span b{
  color:#f0eee7;
  font:700 9px/1.2 monospace;
  letter-spacing:.05em;
}

body.ecr-full-workspace
#boardPanel
.thread-index-row span small{
  color:#aebbb4;
  font:11px/1.35 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.thread-index-row span i{
  color:#71877c;
  font:normal 7px/1.2 monospace;
}

body.ecr-full-workspace
#boardPanel
.thread-index-row em{
  color:#a8c6b6;
  font:700 7px/1.25 monospace;
  font-style:normal;
  text-align:right;
}

body.ecr-full-workspace
#boardPanel
.reader-board-primary{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  min-width:0;
  min-height:0;
  border-right:1px solid var(--rb-rule);
  background:var(--rb-paper);
  color:var(--rb-ink);
}

body.ecr-full-workspace
#boardPanel
.reader-board-thread-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding:20px 24px 17px;
  border-bottom:1px solid var(--rb-rule);
}

body.ecr-full-workspace
#boardPanel
.reader-board-thread-head h3{
  margin:7px 0 4px;
  color:#22352b;
  font:500 27px/1.1 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-thread-head p{
  margin:0;
  color:#65746c;
  font:12px/1.45 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-role{
  flex:0 0 auto;
  padding:7px 9px;
  border:1px solid #899b91;
  color:#43584d;
  font:800 8px/1 monospace;
  letter-spacing:.08em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-role[data-role="author"]{
  border-color:#8c754a;
  color:#765b29;
}

body.ecr-full-workspace
#boardPanel
.reader-board-feed{
  width:auto!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:22px 24px!important;
  overflow:auto;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post{
  max-width:850px;
  margin:0 0 16px;
  padding:17px 18px;
  border:1px solid #c8cec8;
  background:#faf8f1;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post.reply-post{
  margin-left:30px;
  border-left:3px solid #789080;
  background:#f0f1eb;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post header{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-bottom:10px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post header div{
  display:flex;
  align-items:center;
  gap:8px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post header strong{
  color:#24382d;
  font:700 13px/1.2 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post header span{
  padding:3px 5px;
  border:1px solid #9aa89f;
  color:#52665a;
  font:700 7px/1 monospace;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post header small{
  color:#718078;
  font:8px/1.3 monospace;
}

body.ecr-full-workspace
#boardPanel
.reader-board-post p{
  margin:0;
  color:#33473c;
  font:14px/1.65 Georgia,serif!important;
}

body.ecr-full-workspace
#boardPanel
.reader-board-reply-separator{
  display:flex;
  justify-content:space-between;
  max-width:850px;
  margin:16px 0;
  padding:9px 0;
  border-top:1px solid #c8cec8;
  border-bottom:1px solid #c8cec8;
  color:#64756c;
  font:700 8px/1.2 monospace;
  letter-spacing:.08em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-no-replies{
  padding:26px 0;
  color:#7c8881;
  font:italic 13px/1.5 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-empty{
  display:grid;
  place-content:center;
  min-height:300px;
  max-width:680px;
  margin:auto;
  text-align:center;
}

body.ecr-full-workspace
#boardPanel
.reader-board-empty span{
  color:#718078;
  font:700 8px/1.3 monospace;
  letter-spacing:.1em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-empty h3{
  margin:10px 0 8px;
  color:#293b31;
  font:500 26px/1.1 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-empty p{
  margin:0;
  color:#65756d;
  font:13px/1.6 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-reply,
body.ecr-full-workspace
#boardPanel
.reader-board-new-compose{
  padding:13px 20px 15px;
  border-top:1px solid var(--rb-rule);
  background:#ebece6;
}

body.ecr-full-workspace
#boardPanel
.reader-board-new-compose{
  border-top:1px solid #bfc8c1;
}

body.ecr-full-workspace
#boardPanel
.reader-board-compose-label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

body.ecr-full-workspace
#boardPanel
.reader-board-compose-label span{
  color:#435a4e;
  font:800 8px/1.2 monospace;
  letter-spacing:.09em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-compose-label small{
  color:#78877f;
  font:11px/1.3 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-reply textarea,
body.ecr-full-workspace
#boardPanel
.reader-board-new-compose textarea{
  width:100%;
  box-sizing:border-box;
  min-height:70px;
  max-height:150px;
  padding:11px 12px;
  resize:vertical;
  border:1px solid #aeb9b2;
  background:#faf9f4;
  color:#22362c;
  font:13px/1.5 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-context{
  min-width:0;
  min-height:0;
  padding:22px 20px;
  overflow:auto;
  border-left:1px solid #c9c1b2;
  background:#f6f2e8;
  color:#24352d;
}

body.ecr-full-workspace
#boardPanel
.reader-board-context
.workspace-eyebrow{
  display:block;
  margin-bottom:14px;
  color:#5e6a61;
  font:700 10px/1.35 monospace;
  letter-spacing:.11em;
}

body.ecr-full-workspace
#boardPanel
.reader-board-context h3{
  margin:0 0 18px;
  color:#223229;
  font:700 28px/1.08 Georgia,serif;
}

body.ecr-full-workspace
#boardPanel
.reader-board-facts div,
body.ecr-full-workspace
#boardPanel
.reader-board-room-stats dl div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  padding:10px 0;
  border-top:1px solid #d6d0c2;
}

body.ecr-full-workspace
#boardPanel
.reader-board-facts div:last-child,
body.ecr-full-workspace
#boardPanel
.reader-board-room-stats dl div:last-child{
  border-bottom:1px solid #d6d0c2;
}

body.ecr-full-workspace
#boardPanel
.reader-board-context dt{
  color:#6a756d;
  font:700 10px/1.25 monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.ecr-full-workspace
#boardPanel
.reader-board-context dd{
  margin:0;
  color:#1d2a23;
  font:600 13px/1.4 Georgia,serif;
  text-align:right;
}

body.ecr-full-workspace
#boardPanel
.reader-board-privacy{
  margin:18px 0;
  padding:14px 14px 14px 16px;
  border-left:3px solid #7f8e81;
  background:#ece6d8;
  color:#37453d;
  font-size:13px!important;
  line-height:1.55!important;
}

body.ecr-full-workspace
#boardPanel
.reader-board-room-stats{
  margin-top:20px;
}

@media(max-width:1180px){
  body.ecr-full-workspace
  #boardPanel
  .reader-board-workspace{
    grid-template-columns:260px minmax(0,1fr);
  }

  body.ecr-full-workspace
  #boardPanel
  .reader-board-context{
    display:none;
  }
}

@media(max-width:820px){
  body.ecr-full-workspace
  #boardPanel
  .reader-board-workspace{
    display:block;
    height:auto;
    overflow:auto;
  }

  body.ecr-full-workspace
  #boardPanel
  .reader-board-nav{
    border-right:0;
    border-bottom:1px solid #345144;
  }

  body.ecr-full-workspace
  #boardPanel
  .reader-board-thread-index{
    max-height:280px;
  }

  body.ecr-full-workspace
  #boardPanel
  .reader-board-primary{
    min-height:75vh;
    border-right:0;
  }

  body.ecr-full-workspace
  #boardPanel
  .reader-board-context{
    display:block;
  }
}


/* ============================================================
   RC7.8B // COMPACT MANUSCRIPT BOARD
   Full Reader Board remains the independent workspace.
   Inside Manuscript, Board becomes a deliberate quick drawer.
   ============================================================ */

body:not(.ecr-full-workspace)
#boardPanel{
  width:min(430px,calc(100vw - 24px))!important;
  max-width:430px!important;
  background:#f2efe6!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-workspace{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  background:#f2efe6!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-nav,
body:not(.ecr-full-workspace)
#boardPanel
.reader-board-context{
  display:none!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-primary{
  display:grid!important;
  grid-template-rows:auto minmax(190px,1fr) auto!important;
  min-height:0!important;
  border:0!important;
  background:#f2efe6!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-thread-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:15px 16px 13px!important;
  border-bottom:1px solid #c9cec7!important;
  background:#ebe9e0!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-thread-head h3{
  margin:5px 0 3px!important;
  color:#23352b!important;
  font:600 20px/1.12 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-thread-head p{
  margin:0!important;
  color:#607168!important;
  font:11px/1.4 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-role{
  flex:0 0 auto!important;
  padding:5px 7px!important;
  border:1px solid #87998e!important;
  color:#455b4f!important;
  font:700 7px/1 monospace!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-feed{
  min-height:210px!important;
  max-height:42vh!important;
  margin:0!important;
  padding:16px!important;
  overflow:auto!important;
  background:#f6f3ea!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-post{
  margin:0 0 11px!important;
  padding:12px!important;
  border:1px solid #c7cec8!important;
  background:#fffdf7!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-post.reply-post{
  margin-left:14px!important;
  border-left:3px solid #789080!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-post header{
  display:block!important;
  margin-bottom:7px!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-post header small{
  display:block!important;
  margin-top:4px!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-post p{
  color:#304239!important;
  font:13px/1.55 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-empty{
  display:grid!important;
  place-content:center!important;
  min-height:200px!important;
  padding:20px!important;
  text-align:center!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-empty h3{
  margin:8px 0 6px!important;
  color:#27392f!important;
  font:600 20px/1.15 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-empty p{
  margin:0!important;
  color:#63736b!important;
  font:12px/1.5 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-reply{
  display:none!important;
}

/* In the manuscript drawer, prioritize one fast new-post action.
   Threaded discussion/replies belong in OPEN FULL READER BOARD. */
body:not(.ecr-full-workspace)
#boardPanel
.reader-board-new-compose{
  display:block!important;
  padding:13px 15px 14px!important;
  border-top:1px solid #c4cbc5!important;
  background:#e8e9e3!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-new-compose textarea{
  width:100%!important;
  box-sizing:border-box!important;
  min-height:76px!important;
  max-height:130px!important;
  padding:10px!important;
  border:1px solid #aab5ae!important;
  background:#fffdf8!important;
  color:#24372d!important;
  font:12px/1.5 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-compose-label{
  display:block!important;
  margin-bottom:7px!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-compose-label span{
  display:block!important;
  color:#40574a!important;
  font:800 8px/1.2 monospace!important;
  letter-spacing:.08em!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-compose-label small{
  display:block!important;
  margin-top:3px!important;
  color:#6c7b73!important;
  font:11px/1.35 Georgia,serif!important;
}

body:not(.ecr-full-workspace)
#boardPanel
.reader-board-foot{
  background:#e3e7e1!important;
}

/* Preserve the existing OPEN FULL READER BOARD action prominently. */
body:not(.ecr-full-workspace)
#boardPanel
.ecr-open-full-workspace{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
