/* ============================================================
   ECR // RC7.7A // READER DESK V2
   Full-workspace Reader Desk presentation.
   Existing correspondence/data owner remains reader-v2-app.js.
   ============================================================ */

body.ecr-full-workspace #queryPanel{
  --rd-shell:#0c2118;
  --rd-shell-2:#112b20;
  --rd-paper:#f4f1e8;
  --rd-bg:#e5e7e2;
  --rd-ink:#24352d;
  --rd-muted:#66766e;
  --rd-rule:#c7cec9;
  --rd-soft:#edf0ec;
  --rd-green:#214a38;
  --rd-open:#9a6b2f;
  --rd-answer:#32664f;
}

body.ecr-full-workspace #queryPanel .reader-desk-head{
  border-bottom:1px solid #2a4639;
}

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

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

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

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

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

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

body.ecr-full-workspace #queryPanel .reader-desk-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 #queryPanel .reader-desk-new span{
  font:800 9px/1.2 var(--ecr-phase-mono,monospace);
  letter-spacing:.08em;
}

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

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

body.ecr-full-workspace #queryPanel .reader-desk-search span{
  color:#95a79e;
  font:700 8px/1.2 var(--ecr-phase-mono,monospace);
  letter-spacing:.1em;
}

body.ecr-full-workspace #queryPanel .reader-desk-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 #queryPanel .reader-desk-filters{
  display:grid;
  gap:4px;
}

body.ecr-full-workspace #queryPanel .reader-desk-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 #queryPanel .reader-desk-filters button span{
  font:700 8px/1.2 var(--ecr-phase-mono,monospace);
  letter-spacing:.08em;
}

body.ecr-full-workspace #queryPanel .reader-desk-filters button b{
  min-width:25px;
  padding:4px 6px;
  border:1px solid #355347;
  color:#aebdb5;
  font:700 8px/1 var(--ecr-phase-mono,monospace);
  text-align:center;
}

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

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

body.ecr-full-workspace #queryPanel .reader-desk-categories{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin:8px 0 15px;
}

body.ecr-full-workspace #queryPanel .reader-desk-categories button{
  min-height:35px;
  margin:0;
  padding:5px 7px;
  border:1px solid #355347;
  background:#0b1b14;
  color:#aebdb5;
}

body.ecr-full-workspace #queryPanel .reader-desk-categories button.active{
  border-color:#8da99b;
  background:#eef0e9;
  color:#17382a;
}

body.ecr-full-workspace #queryPanel .reader-desk-index-label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 2px 8px;
  border-top:1px solid #29473a;
  color:#95a79e;
  font:700 8px/1.2 var(--ecr-phase-mono,monospace);
  letter-spacing:.08em;
}

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

body.ecr-full-workspace #queryPanel .reader-desk-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 #queryPanel .reader-desk-thread-index .thread-index-row.active{
  border-color:#8aa696;
  background:#18382b;
}

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

body.ecr-full-workspace #queryPanel .thread-index-row span b{
  color:#f0eee7;
  font:700 9px/1.2 var(--ecr-phase-mono,monospace);
  letter-spacing:.07em;
}

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

body.ecr-full-workspace #queryPanel .thread-index-row span i{
  color:#71877c;
  font:normal 7px/1.2 var(--ecr-phase-mono,monospace);
}

body.ecr-full-workspace #queryPanel .thread-index-row em{
  padding:4px 6px;
  border:1px solid #6d6040;
  color:#ddc893;
  font:700 7px/1 var(--ecr-phase-mono,monospace);
  font-style:normal;
  letter-spacing:.05em;
}

body.ecr-full-workspace #queryPanel .thread-index-row em[data-state="answered"]{
  border-color:#4d7a65;
  color:#a8d2bc;
}

body.ecr-full-workspace #queryPanel .reader-desk-conversation{
  position:relative;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-width:0;
  min-height:0;
  border-right:1px solid var(--rd-rule);
  background:var(--rd-paper);
  color:var(--rd-ink);
}

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

body.ecr-full-workspace #queryPanel .reader-desk-thread-head h3{
  margin:7px 0 4px;
  color:var(--rd-ink);
  font:500 27px/1.1 Georgia,serif;
}

body.ecr-full-workspace #queryPanel .reader-desk-thread-head p{
  margin:0;
  color:var(--rd-muted);
  font:12px/1.45 Georgia,serif;
}

body.ecr-full-workspace #queryPanel .query-private-note{
  padding:0;
  border:0;
  background:transparent;
  color:#72837a;
  font:700 8px/1.3 var(--ecr-phase-mono,monospace);
  letter-spacing:.08em;
}

body.ecr-full-workspace #queryPanel .reader-desk-state{
  flex:0 0 auto;
  padding:7px 9px;
  border:1px solid #b99a67;
  color:#795a28;
  font:800 8px/1 var(--ecr-phase-mono,monospace);
  letter-spacing:.08em;
}

body.ecr-full-workspace #queryPanel .reader-desk-state[data-state="answered"]{
  border-color:#75a08b;
  color:#2c674e;
}

body.ecr-full-workspace #queryPanel .reader-desk-feed{
  min-height:0;
  height:auto!important;
  overflow:auto;
  padding:22px 24px!important;
  background:
    linear-gradient(90deg,rgba(42,70,56,.025) 1px,transparent 1px);
  background-size:44px 100%;
}

body.ecr-full-workspace #queryPanel .reader-desk-feed .message-row{
  max-width:760px;
  margin:0 0 13px;
}

body.ecr-full-workspace #queryPanel .reader-desk-compose{
  position:relative;
  padding:15px 20px 17px;
  border-top:1px solid var(--rd-rule);
  border-bottom:0;
  background:#ebece6;
}

body.ecr-full-workspace #queryPanel .reader-desk-compose-head{
  margin-bottom:9px;
}

body.ecr-full-workspace #queryPanel .reader-desk-compose-head div{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

body.ecr-full-workspace #queryPanel .reader-desk-compose-head span{
  color:#435a4e;
  font:800 8px/1.2 var(--ecr-phase-mono,monospace);
  letter-spacing:.09em;
}

body.ecr-full-workspace #queryPanel .reader-desk-compose-head small{
  color:#7a8981;
  font:11px/1.3 Georgia,serif;
}

body.ecr-full-workspace #queryPanel .reader-desk-compose textarea{
  width:100%;
  box-sizing:border-box;
  min-height:92px;
  max-height:190px;
  padding:12px 13px;
  border:1px solid #aeb9b2;
  background:#faf9f4;
  color:#22362c;
  font:13px/1.55 Georgia,serif;
}

body.ecr-full-workspace #queryPanel .reader-desk-context{
  min-width:0;
  min-height:0;
  padding:22px 20px;
  overflow:auto;
  background:#eef0ec;
  color:var(--rd-ink);
}

body.ecr-full-workspace #queryPanel .reader-desk-context h3{
  margin:7px 0 18px;
  color:#23382d;
  font:500 22px/1.1 Georgia,serif;
}

body.ecr-full-workspace #queryPanel .reader-desk-facts{
  display:grid;
  gap:0;
}

body.ecr-full-workspace #queryPanel .reader-desk-facts div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #d3d8d4;
}

body.ecr-full-workspace #queryPanel .reader-desk-facts dt{
  color:#7b8981;
  font:700 8px/1.3 var(--ecr-phase-mono,monospace);
  letter-spacing:.07em;
}

body.ecr-full-workspace #queryPanel .reader-desk-facts dd{
  margin:0;
  color:#30483b;
  font:700 9px/1.3 var(--ecr-phase-mono,monospace);
  text-align:right;
}

body.ecr-full-workspace #queryPanel .reader-desk-privacy{
  margin-top:18px;
  font-size:12px;
  line-height:1.5;
}

body.ecr-full-workspace #queryPanel .reader-desk-guidance{
  margin-top:20px;
  padding-top:17px;
  border-top:1px solid #d1d7d2;
}

body.ecr-full-workspace #queryPanel .reader-desk-guidance ul{
  margin:9px 0 0;
  padding-left:18px;
  color:#5c6f65;
  font:12px/1.75 Georgia,serif;
}

body.ecr-full-workspace #queryPanel .reader-desk-foot{
  border-top:1px solid #c5cdc7;
  background:#e3e6e1;
}

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

  body.ecr-full-workspace #queryPanel .reader-desk-context{
    display:none;
  }
}

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

  body.ecr-full-workspace #queryPanel .reader-desk-nav{
    max-height:none;
    border-right:0;
    border-bottom:1px solid #345144;
  }

  body.ecr-full-workspace #queryPanel .reader-desk-thread-index{
    max-height:270px;
  }

  body.ecr-full-workspace #queryPanel .reader-desk-conversation{
    min-height:70vh;
    border-right:0;
  }

  body.ecr-full-workspace #queryPanel .reader-desk-context{
    display:block;
  }
}

@media(prefers-reduced-motion:reduce){
  body.ecr-full-workspace #queryPanel *{
    scroll-behavior:auto!important;
  }
}



/* ============================================================
   RC7.7C // READER DESK READABILITY
   Right context rail contrast + hierarchy polish
============================================================ */

body.ecr-full-workspace #queryPanel .workspace-context{
  background:#f6f2e8;
  border-left:1px solid #c9c1b2;
}

body.ecr-full-workspace #queryPanel .workspace-context .workspace-eyebrow{
  display:block;
  color:#5e6a61;
  font:700 10px/1.35 "Courier New",monospace;
  letter-spacing:.11em;
  text-transform:uppercase;
  margin-bottom:14px;
}

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

body.ecr-full-workspace #queryPanel .workspace-facts{
  margin:0 0 18px 0;
}

body.ecr-full-workspace #queryPanel .workspace-facts > div{
  padding:10px 0;
  border-top:1px solid #d6d0c2;
}

body.ecr-full-workspace #queryPanel .workspace-facts > div:last-child{
  border-bottom:1px solid #d6d0c2;
}

body.ecr-full-workspace #queryPanel .workspace-facts dt{
  color:#6a756d;
  font:700 10px/1.25 "Courier New",monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
  margin-bottom:4px;
}

body.ecr-full-workspace #queryPanel .workspace-facts dd{
  margin:0;
  color:#1d2a23;
  font:600 14px/1.45 Georgia, serif;
}

body.ecr-full-workspace #queryPanel .workspace-context .context-callout{
  margin:18px 0 18px 0;
  padding:14px 14px 14px 16px;
  background:#ece6d8;
  border-left:3px solid #7f8e81;
  color:#37453d;
  font-size:13px;
  line-height:1.55;
}

body.ecr-full-workspace #queryPanel .workspace-context .context-callout strong{
  display:block;
  margin-bottom:6px;
  color:#1f2d26;
  font:700 10px/1.3 "Courier New",monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
}

body.ecr-full-workspace #queryPanel .workspace-context p{
  color:#405047;
  font-size:13px;
  line-height:1.55;
}

body.ecr-full-workspace #queryPanel .workspace-context ul{
  margin:10px 0 0 18px;
  padding:0;
}

body.ecr-full-workspace #queryPanel .workspace-context li{
  color:#334239;
  font-size:13px;
  line-height:1.55;
  margin:0 0 6px 0;
}

body.ecr-full-workspace #queryPanel .workspace-context .workspace-actions button{
  color:#f5efe3;
}

body.ecr-full-workspace #queryPanel .workspace-context .workspace-actions button:hover{
  filter:brightness(1.05);
}
