/* Isolate the nested portal panel from the application's primary sidebar rules. */
body.case-mode #content > .comm-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(310px,360px)!important;
  grid-template-areas:"thread portal"!important;
  align-items:start!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
body.case-mode .comm-grid > .comm-panel{
  grid-area:thread!important;
  position:relative!important;
  min-width:0!important;
  width:auto!important;
  inset:auto!important;
}
body.case-mode .comm-grid > aside.portal-control{
  grid-area:portal!important;
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
  overflow:visible!important;
  z-index:auto!important;
  display:block!important;
  color:#0a1d40!important;
}
body.case-mode .comm-grid > aside.portal-control:before,
body.case-mode .comm-grid > aside.portal-control:after{display:none!important;content:none!important}
body.case-mode .portal-active{color:#0a1d40!important;background:#f4f7fb!important}
body.case-mode .portal-check{color:#0a1d40!important}
body.case-mode .portal-control input{color:#0a1d40!important;background:#fff!important}
body.case-mode .comm-empty{max-width:100%;overflow-wrap:anywhere}
@media(max-width:1250px){
  body.case-mode #content > .comm-grid{grid-template-columns:minmax(0,1fr) 310px!important}
}
@media(max-width:950px){
  body.case-mode #content > .comm-grid{grid-template-columns:1fr!important;grid-template-areas:"portal" "thread"!important}
}
