/* CAROMY_STEP64_MATE_PANEL: overlay stays INSIDE commercial practice controls. */
html[data-caromy-match="1"] .practice-four-grid {position:relative!important;isolation:isolate!important;min-width:0!important;}
html[data-caromy-match="1"] .practice-four-grid > .caromy-mate-guard {
  position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;
  inset:0!important;transform:none!important;width:100%!important;height:100%!important;
  min-width:0!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;box-sizing:border-box!important;z-index:20!important;
  overflow:hidden!important;border-radius:12px!important;
  background:rgba(249,252,249,.97)!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-items:center!important;gap:8px!important;padding:10px!important;
}
html[data-caromy-match="1"] .practice-four-grid > .caromy-mate-guard[data-visible="false"] {
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html[data-caromy-match="1"] .practice-four-grid > .caromy-mate-guard[data-visible="true"] {visibility:visible!important;pointer-events:auto!important;}
html[data-caromy-match="1"] .practice-four-grid > .caromy-mate-guard img {
  position:static!important;transform:none!important;display:block!important;
  width:auto!important;height:auto!important;max-width:100%!important;max-height:min(55%,240px)!important;
  object-fit:contain!important;flex:0 1 auto!important;margin:0 auto!important;
}
html[data-caromy-match="1"] .practice-four-grid > .caromy-mate-guard .caromy-mate-caption {
  position:static!important;transform:none!important;max-width:100%!important;
  flex:0 1 auto!important;overflow:auto!important;text-align:center!important;
}
/* Preserve turn overlay inside panel, never full-screen. */
@media (orientation:landscape) {
 html[data-caromy-match="1"] .practice-four-grid > .caromy-mate-guard img {max-height:min(54%,180px)!important;}
}
