/* V68 — actual mobile fixes loaded LAST */
@media (max-width:700px){
  /* Cabinet unit 3D viewer */
  body .preview-stage.preview-stage-3d .viewer-help{display:none!important}
  body .preview-stage.preview-stage-3d .view-buttons{
    position:absolute!important;
    top:10px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:max-content!important;
    max-width:calc(100% - 20px)!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    direction:rtl!important;
    z-index:40!important;
  }
  body .preview-stage.preview-stage-3d .view-buttons button{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:38px!important;
    max-width:none!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 10px!important;
    margin:0!important;
    border-radius:9px!important;
    font-size:11px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  body .preview-stage.preview-stage-3d .view-buttons button[data-local-view="iso"]{min-width:78px!important}
  body .preview-stage.preview-stage-3d #zoomResetBtn{min-width:58px!important}
  body .preview-stage.preview-stage-3d .handle-cut-label{display:none!important}

  /* Wardrobe viewer: same mobile control language as cabinet */
  body .wardrobe-preview-stage.preview-stage-3d .viewer-help{display:none!important}
  body .wardrobe-preview-stage.preview-stage-3d .wardrobe-view-buttons{
    position:absolute!important;
    top:10px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:max-content!important;
    max-width:calc(100% - 18px)!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    direction:rtl!important;
    z-index:40!important;
  }
  body .wardrobe-preview-stage.preview-stage-3d .wardrobe-view-buttons button{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:38px!important;
    max-width:none!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 10px!important;
    margin:0!important;
    border-radius:9px!important;
    font-size:11px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  body .wardrobe-preview-stage.preview-stage-3d .wardrobe-view-buttons button[data-local-view="iso"]{min-width:78px!important}
  body .wardrobe-preview-stage.preview-stage-3d #zoomResetBtn{min-width:58px!important}

  /* Portfolio search */
  body .portfolio-search-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    align-items:center!important;
  }
  body .portfolio-search{min-width:0!important;width:100%!important}
  body .portfolio-clear{
    width:auto!important;
    min-width:92px!important;
    height:46px!important;
    padding:0 11px!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    line-height:1!important;
    font-size:11px!important;
  }

  /* Expert public-profile tabs */
  body .ep-tabs{
    display:grid!important;
    grid-template-columns:1.2fr 1fr .9fr .75fr!important;
    width:100%!important;
    gap:0!important;
    padding:0 5px!important;
    overflow:visible!important;
    align-items:stretch!important;
  }
  body .ep-tabs button{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    padding:0 2px!important;
    margin:0!important;
    font-size:10px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  body .ep-tabs button.active:after{right:5px!important;left:5px!important}
}

@media (max-width:380px){
  body .preview-stage.preview-stage-3d .view-buttons,
  body .wardrobe-preview-stage.preview-stage-3d .wardrobe-view-buttons{gap:3px!important}
  body .preview-stage.preview-stage-3d .view-buttons button,
  body .wardrobe-preview-stage.preview-stage-3d .wardrobe-view-buttons button{height:34px!important;min-height:34px!important;min-width:34px!important;padding:0 8px!important;font-size:10px!important}
  body .preview-stage.preview-stage-3d .view-buttons button[data-local-view="iso"],
  body .wardrobe-preview-stage.preview-stage-3d .wardrobe-view-buttons button[data-local-view="iso"]{min-width:70px!important}
  body .preview-stage.preview-stage-3d #zoomResetBtn,
  body .wardrobe-preview-stage.preview-stage-3d #zoomResetBtn{min-width:52px!important}
  body .ep-tabs button{font-size:9px!important}
}
