/* Phone layout for 户型核对: the floor plan must be visible before any "confirm"
   button, and the action sheet must not cover half the screen. */
@media (max-width:767px){
  /* Steps fit on one row */
  .compact-layout .workflow-progress{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px}
  .compact-layout .workflow-progress>button{min-height:38px;height:auto;padding:4px 2px;font-size:12px;line-height:1.2;flex-direction:column;gap:2px}

  /* Compass tools are not needed while checking furniture on a phone */
  .review-workbench .admin-compass-tools{display:none}
  .review-workbench .review-opening-toolbar{padding:4px 8px;min-height:0}

  /* Bigger map */
  .review-workbench .canvas-viewport{height:clamp(300px,52dvh,520px)!important}

  /* Bottom action sheet: one column, capped height, scroll inside */
  .model-review-footer{display:flex!important;flex-direction:column;gap:6px;max-height:34dvh;overflow:auto;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0;box-shadow:0 -6px 18px rgba(32,40,51,.12)}
  .model-review-footer>section{height:auto!important;min-height:0!important}
  .model-review-footer .bed-more-actions{display:flex;flex-wrap:wrap;gap:6px}
  .model-review-footer .bed-more-actions button{min-height:36px;padding:0 10px;font-size:13px;flex:1 1 auto}
  .model-review-footer .facing-control-actions{display:flex;flex-wrap:wrap;gap:6px}
}
