/* 7FCLAB Responsive Lab v0.1 (2026-10-23)
 * PC/Tablet layout only. No AP, gameplay, persistence or data modifications.
 * Production overlay applied after v2.5.1 CSS.
 */
@media (min-width:761px) and (max-width:1599px){
  /* Independent overflow for the crowded navigation, not a clipped full page. */
  body .workspace,body .main{min-width:0!important;}
  body .editor-view-tabs{
    display:flex!important;align-items:center!important;
    flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;
    scrollbar-width:thin!important;scrollbar-color:rgba(208,173,88,.36) transparent!important;
  }
  body .editor-view-tabs>.editor-view-tab,
  body .editor-view-tabs>.editor-view-sep{flex-shrink:0!important;white-space:nowrap!important;}
  body .editor-view-tabs::-webkit-scrollbar{height:3px;}
  body .editor-view-tabs::-webkit-scrollbar-thumb{background:rgba(208,173,88,.3);border-radius:3px;}
  /* Three cramped attribute columns are not useful at this width. */
  body #attributes.attr-columns{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body #attributes .attr-column{min-width:0!important;gap:12px!important;}
  body #attributes .attr-main{
    grid-template-columns: minmax(85px,104px) minmax(0,1fr) minmax(76px,89px)!important;
    column-gap:7px!important;
    padding-left:9px!important;padding-right:9px!important;
  }
  body #attributes .attr-name-wrap{width:auto!important;min-width:0!important;}
  body #attributes .category-head{padding-left:9px!important;padding-right:9px!important;}
}
@media (min-width:900px) and (max-width:1399px){
  /* Fix legacy tablet display:block against the one-screen workspace contract. */
  body .workspace,body.build-overview-active .workspace{
    display:grid!important;
    grid-template-columns:clamp(246px,20vw,262px) minmax(0,1fr)!important;
    gap:12px!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }
  body .left-stack,body.build-overview-active .left-stack{
    display:block!important;position:relative!important;top:auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    overflow:hidden!important;padding:0!important;margin:0!important;
  }
  body .global-archetype-overview-card{
    width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
    overflow:hidden!important;
  }
  body .global-archetype-overview-card .ovc-scroll{
    height:100%!important;max-height:100%!important;overflow-y:auto!important;
    overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  }
  body .main{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;}
  /* Keep the entire editor in the visible second column, not below the card. */
  body .workspace .main #attributes,
  body .workspace .main #specializationPanel,
  body .workspace .main #playstylesPanel,
  body .workspace .main #playerCardPanel{
    overflow-y:auto!important;min-height:0!important;
  }
  body #advancedPanel{height:auto!important;min-height:0!important;overflow:hidden!important;}
}
@media (min-width:761px) and (max-width:1099px){
  body #attributes.attr-columns{grid-template-columns:minmax(0,1fr)!important;}
  body .site-brand-copy h1{font-size:17px!important;}
  body .shell{padding-left:12px!important;padding-right:12px!important;}
  body .editor-view-tab{padding-left:9px!important;padding-right:9px!important;}
  /* Allow a narrower one-column attribute card without shrinking numeric controls. */
  body #attributes .attr-main{
    grid-template-columns:minmax(90px,118px) minmax(90px,1fr) 89px!important;
  }
}
@media (min-width:761px) and (max-width:899px){
  /* Narrow portrait tablet: deliberate vertically scrollable editor, not blank right-hand area. */
  html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;}
  body .shell{
    display:block!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;
    padding:10px 12px 28px!important;
  }
  body .topbar{min-height:42px!important;margin-bottom:9px!important;}
  body .workspace,body.build-overview-active .workspace{
    display:flex!important;flex-direction:column!important;gap:10px!important;
    height:auto!important;min-height:0!important;overflow:visible!important;
  }
  body .left-stack,body.build-overview-active .left-stack{
    position:relative!important;display:block!important;top:auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:224px!important;min-height:224px!important;max-height:224px!important;
    overflow:hidden!important;padding:0!important;margin:0!important;
  }
  body .global-archetype-overview-card{width:100%!important;height:224px!important;max-height:224px!important;overflow:hidden!important;}
  body .global-archetype-overview-card .ovc-scroll{height:100%!important;max-height:100%!important;overflow-y:auto!important;scrollbar-width:thin!important;}
  body .main{
    display:flex!important;flex-direction:column!important;
    width:100%!important;height:auto!important;min-height:500px!important;
    overflow:visible!important;
  }
  body .editor-view-tabs{height:44px!important;min-height:44px!important;}
  body .workspace-decor-header{height:30px!important;min-height:30px!important;flex-basis:30px!important;}
  body #attributes,body #specializationPanel,body #playstylesPanel,body #playerCardPanel,
  body #advancedPanel{
    flex:none!important;min-height:500px!important;max-height:none!important;
    height:auto!important;overflow:visible!important;
  }
  body #advancedPanel .advanced-grid{height:auto!important;min-height:0!important;}
}
@media (min-width:761px) and (max-height:800px){
  body .shell{padding-top:7px!important;padding-bottom:7px!important;}
  body .topbar{margin-bottom:3px!important;}
  body .workspace-decor-header{height:28px!important;min-height:28px!important;flex-basis:28px!important;margin-bottom:4px!important;}
  body .editor-view-tabs{min-height:40px!important;height:40px!important;margin-bottom:3px!important;}
}
