/* R5.8.5 L3 HOTFIX02 — the interview / notices are ONE grid child, not loose grid items.
 * Scope to studio only. No data or readonly state is changed. */
.r54-mode .r54-shell {
  display:grid!important;
  grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
}
.r54-mode .r54-shell > .r54-panel {
  grid-column:1;
  grid-row:1;
  min-width:0;
  max-width:100%;
}
.r54-mode .r54-shell > .r585-studio-content {
  grid-column:2;
  grid-row:1;
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  position:relative;
  z-index:1;
}
.r54-mode .r585-studio-content > .r53-layout {
  display:flex!important;
  flex-direction:column!important;
  gap:12px;
  min-width:0!important;
  max-width:100%;
  width:100%!important;
}
.r54-mode .r585-studio-content .r53-main {
  display:block!important;
  min-width:0!important;
  max-width:100%;
  width:100%!important;
  margin:0!important;
}
.r54-mode .r585-studio-content .r585-studio-parts,
.r54-mode .r585-studio-content .r585-readonly-banner {
  max-width:100%;
  min-width:0;
}
/* At tablet/mobile width place the reader ABOVE the full-width questionnaire. */
@media(max-width:970px) {
  .r54-mode .r54-shell {display:block!important;}
  .r54-mode .r54-shell > .r585-studio-content {
    display:block;
    width:100%!important;
    max-width:100%;
    margin-top:14px;
  }
  .r54-mode .r54-shell > .r54-panel {position:relative;top:auto;max-height:none;}
}
