/* Season2 Production UX Compact Pass A — Field correction R1
   Build: v20.1 PA-04.5 COMPACT-A
   Base: PA-04.4 COMPACT-A after three-environment Field Audit B1.
   Scope only: four audited layout corrections.
   No copy compression. No sticky-next. No Visual Constitution change. */

@media(max-width:719px){
  /* EP04 T — restore the 4-step reference row to one horizontal line so it maps directly to the distance scale. */
  .visual-prototype .distance-t .distance-step-row{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:.26rem!important;
  }
  .visual-prototype .distance-t .distance-step{
    min-width:0!important;
    padding:.42rem .34rem!important;
    border-radius:.72rem!important;
  }
  .visual-prototype .distance-t .distance-step span{
    font-size:.54rem!important;
  }
  .visual-prototype .distance-t .distance-step strong{
    margin-top:.08rem!important;
    font-size:.66rem!important;
    line-height:1.35!important;
  }
  /* The four labels inside the scene also remain one compact row. */
  .visual-prototype .distance-t .distance-bands.distance-steps-inline,
  .visual-prototype .part2-c-result-shot .distance-bands.distance-steps-inline{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:.16rem!important;
    left:10px!important;
    right:10px!important;
    top:10px!important;
  }
  .visual-prototype .distance-t .distance-bands.distance-steps-inline span,
  .visual-prototype .part2-c-result-shot .distance-bands.distance-steps-inline span{
    padding:.20rem .12rem!important;
    font-size:.52rem!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }

  /* EP06 T — remove horizontal slide. Visual first, condition panel below, both full-width and slightly flatter. */
  .visual-prototype .v171-load-t .v171-load-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:.62rem!important;
    overflow-x:visible!important;
    margin:.72rem 0!important;
  }
  .visual-prototype .v171-load-t .v171-load-left,
  .visual-prototype .v171-load-t .v171-load-right{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  .visual-prototype .v171-load-t .load-scene-card{
    padding:.58rem!important;
  }
  .visual-prototype .v171-load-t .load-scene-stage{
    height:184px!important;
    min-height:184px!important;
  }
  .visual-prototype .v171-load-t .ep6-stage-elephant{
    left:7%!important;
    bottom:18px!important;
    width:108px!important;
    height:68px!important;
  }
  .visual-prototype .v171-load-t .ep6-stage-woodpile{
    right:17%!important;
    bottom:88px!important;
    width:58px!important;
    height:36px!important;
  }
  .visual-prototype .v171-load-t .load-food-strip{
    right:22%!important;
    bottom:25px!important;
    gap:5px!important;
  }
  .visual-prototype .v171-load-t .food-cube{
    width:14px!important;
    height:14px!important;
  }
  .visual-prototype .v171-load-t .load-chain-link{
    left:38%!important;
    bottom:89px!important;
    width:58px!important;
  }
  .visual-prototype .v171-load-t .load-weight-block{
    left:49%!important;
    bottom:84px!important;
    width:20px!important;
    height:26px!important;
  }
  .visual-prototype .v171-load-t .load-weight-block:before{
    left:5px!important;
    top:-9px!important;
    width:9px!important;
    height:9px!important;
  }
  .visual-prototype .v171-load-t .load-exit-gate{
    right:5%!important;
    bottom:18px!important;
    height:108px!important;
  }
  .visual-prototype .v171-load-t .load-scene-legend{
    margin-top:.48rem!important;
    gap:.34rem .58rem!important;
    font-size:.68rem!important;
  }
  .visual-prototype .v171-load-t .v171-load-right{
    padding:.68rem!important;
    border:1px solid rgba(77,95,124,.10)!important;
    border-radius:1rem!important;
    background:rgba(255,255,255,.46)!important;
  }
  .visual-prototype .v171-load-t .v171-load-right>p{
    margin:.3rem 0 .52rem!important;
  }
  .visual-prototype .v171-load-t .v171-status-grid{
    margin:.5rem 0!important;
  }
  .visual-prototype .v171-load-t .load-disclaimer{
    margin-top:.4rem!important;
  }

  /* EP09 A — 01/02, 03/05, 04 full, 06 full last. */
  .visual-prototype .part3-a-ep9 .part3-choice-grid>button:nth-child(1){order:1}
  .visual-prototype .part3-a-ep9 .part3-choice-grid>button:nth-child(2){order:2}
  .visual-prototype .part3-a-ep9 .part3-choice-grid>button:nth-child(3){order:3;grid-column:auto!important}
  .visual-prototype .part3-a-ep9 .part3-choice-grid>button:nth-child(5){order:4;grid-column:auto!important}
  .visual-prototype .part3-a-ep9 .part3-choice-grid>button:nth-child(4){order:5;grid-column:1/-1!important}
  .visual-prototype .part3-a-ep9 .part3-choice-grid>button:nth-child(6){order:6;grid-column:1/-1!important}

  /* Bridge 4/4 — keep result provenance vertically consistent with the other mobile bridge views. */
  .visual-prototype .doors-screen-v12 .door-result-strip{
    grid-template-columns:1fr!important;
    gap:.48rem!important;
  }
  .visual-prototype .doors-screen-v12 .door-result-strip>div{
    min-width:0!important;
  }
}
