/* 4.0.11: keep every theme Studio inside the same 1280px page frame.
 * Loaded after legacy page-level CSS to prevent conflicting full-viewport layouts.
 * Intentionally presentation-only: do not touch inputs, AJAX, storage or navigation.
 */
html body #main-content.gg405-theme-studio {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:18px 0 66px!important;
  clear:both!important;
  float:none!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
  overflow:clip!important;
}
html body #main-content.gg405-theme-studio > .gg370-studio__container {
  display:block!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:min(1280px, calc(100% - 40px))!important;
  max-width:1280px!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:0!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
  float:none!important;
  overflow:visible!important;
}
/* Both WordPress templates: classic theme-builder and shortcode-based theme Studio. */
html body #main-content.gg405-theme-studio :is(.ggt34-studio-article,.ggt34-studio-content,.gg405-theme-studio-content) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
  float:none!important;
}
html body #main-content.gg405-theme-studio :is(.gg370-studio__crumb,.gg370-studio__opening,.gg370-studio__steps,.gg405-theme-workspace,.gg370-studio__tail) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
  float:none!important;
}
html body #main-content.gg405-theme-studio .gg370-studio__crumb,
html body #main-content.gg405-theme-studio .gg370-studio__opening {
  padding-inline:0!important;
  text-align:left!important;
}
html body #main-content.gg405-theme-studio .gg370-studio__steps {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
html body #main-content.gg405-theme-studio .gg370-studio__steps > a{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
html body #main-content.gg405-theme-studio .gg405-theme-workspace {
  display:grid!important;
  grid-template-columns:minmax(0,13fr) minmax(0,7fr)!important;
  gap:clamp(17px,2.5vw,30px)!important;
  align-items:start!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body #main-content.gg405-theme-studio .gg405-theme-workspace > :is(form.ggw-quick-generator,aside.gg370-studio__preview){
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  transform:none!important;
  float:none!important;
}
/* Earlier form layouts may set fixed columns or minimum widths. Keep them fluid. */
html body #main-content.gg405-theme-studio :is(.gg45-theme-brief,.gg45-theme-fields,.ggtheme-shortcode-form-heading,.gg490-fields-head,.gg370-studio__paper){
  box-sizing:border-box!important;
  max-width:100%!important;
  min-width:0!important;
}
@media(max-width:900px){
  html body #main-content.gg405-theme-studio .gg405-theme-workspace{grid-template-columns:minmax(0,1fr)!important;}
  html body #main-content.gg405-theme-studio .gg405-theme-workspace > aside.gg370-studio__preview{position:static!important;top:auto!important;}
  html body #main-content.gg405-theme-studio .gg370-studio__steps{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
  html body #main-content.gg405-theme-studio{padding-top:12px!important;padding-bottom:48px!important;}
  html body #main-content.gg405-theme-studio > .gg370-studio__container{width:calc(100% - 20px)!important;}
  html body #main-content.gg405-theme-studio .gg370-studio__steps{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  html body #main-content.gg405-theme-studio .gg370-studio__steps > a{min-height:64px!important;}
}
