/* v42 — fixed template chooser workspace: only the template gallery scrolls */
@media (min-width: 901px){
  body.template-chooser-active{overflow:hidden;background:#fff}
  body.template-chooser-active .toolbar{position:relative;z-index:70}
  body.template-chooser-active .stepbar{position:relative;z-index:69}
  body.template-chooser-active .workspace.start-mode{
    width:100%;
    max-width:1440px;
    height:calc(100vh - 132px);
    min-height:560px;
    margin:0 auto;
    border:0;
    border-radius:0;
    overflow:hidden;
    background:#fff;
  }
  body.template-chooser-active .workspace.start-mode .editor{
    height:100%;
    min-height:0;
    padding:14px 28px 12px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  body.template-chooser-active .wizard-panel[data-step="0"]{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  body.template-chooser-active .wizard-panel[data-step="0"]>h1{
    display:none;
  }
  body.template-chooser-active .template-welcome{
    position:static!important;
    flex:0 0 auto;
    text-align:center;
    padding:2px 14px 9px!important;
    margin:0!important;
    border-bottom:1px solid #dde7f0!important;
  }
  body.template-chooser-active .template-welcome .assist-kicker{font-size:10px}
  body.template-chooser-active .template-welcome h1{
    font-size:28px!important;
    margin:4px 0 5px!important;
    line-height:1.08!important;
  }
  body.template-chooser-active .template-welcome p{
    margin:2px auto!important;
    max-width:920px;
    font-size:13px!important;
    line-height:1.35!important;
  }
  body.template-chooser-active .template-reassure{font-size:11px!important;color:#63788d!important}
  body.template-chooser-active .wizard-panel[data-step="0"]>.fields{
    flex:1 1 auto;
    min-height:0;
    padding:0!important;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  body.template-chooser-active .template-quickbar{
    position:static!important;
    flex:0 0 auto;
    top:auto!important;
    z-index:1!important;
    margin:8px 0 8px!important;
    padding:8px 12px!important;
    border-radius:10px!important;
    box-shadow:0 2px 8px rgba(22,60,101,.06);
  }
  body.template-chooser-active .template-quickbar button{padding:7px 10px!important;font-size:12px!important}
  body.template-chooser-active .quick-note{font-size:11px!important}
  body.template-chooser-active .template-gallery{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    margin:0!important;
    padding:4px 7px 14px 3px!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:10px!important;
    align-content:start;
  }
  body.template-chooser-active .template-card{
    padding:7px!important;
    border-radius:10px!important;
  }
  body.template-chooser-active .template-card .mini-paper{max-height:none!important}
  body.template-chooser-active .template-card>strong{font-size:13px!important;margin:7px 0 2px!important}
  body.template-chooser-active .template-card>small{font-size:10px!important;line-height:1.25!important;min-height:25px!important}
  body.template-chooser-active .template-simple-hint{display:none!important}
  body.template-chooser-active .wizard-footer{
    flex:0 0 auto;
    margin:8px 0 0!important;
    padding:9px 0 0!important;
    background:#fff;
    border-top:1px solid #dce3ea;
  }
  body.template-chooser-active #next-step{
    min-width:130px;
    background:#1f6fba;
    color:#fff;
    border-color:#1f6fba;
    box-shadow:0 4px 12px rgba(31,111,186,.18);
  }
}
@media (min-width:901px) and (max-width:1180px){
  body.template-chooser-active .template-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-height:760px) and (min-width:901px){
  body.template-chooser-active .workspace.start-mode{height:calc(100vh - 122px)}
  body.template-chooser-active .template-welcome h1{font-size:23px!important}
  body.template-chooser-active .template-welcome p{font-size:11px!important}
  body.template-chooser-active .template-quickbar{margin:5px 0!important;padding:6px 9px!important}
}
