/* Final precedence guard for the MEDCORE material map v109. */
@media(min-width:821px){
  html,
  body.app-body,
  body.app-body #app,
  body.app-body .app-shell,
  body.app-body .main,
  body.app-body .topbar,
  body.app-body #view{
    scale:1!important;
    zoom:1!important;
    transform:none!important;
    transform-origin:initial!important;
  }
  body.app-body #app,
  body.app-body .app-shell{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  body.app-body .main{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
  }
}
body.app-body #view.mrph-medcore-profile-view{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:clamp(20px,3vw,42px)!important;
  box-sizing:border-box!important;
  transform:none!important;
  transform-origin:initial!important;
  scale:1!important;
  zoom:1!important;
  overflow-x:hidden!important;
}
body.app-body #view.mrph-medcore-profile-view.mrph-view-profile::before{
  display:none!important;
  content:none!important;
  height:0!important;
  margin:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
}
body.app-body #view.mrph-medcore-profile-view > .mrph-medcore-profile-workspace{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:min(100%,1280px)!important;
  max-width:1280px!important;
  min-width:0!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
  transform:none!important;
  transform-origin:initial!important;
  scale:1!important;
  zoom:1!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-grid{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-surface{
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-surface *,
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-hero *{
  box-sizing:border-box!important;
  min-width:0;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-form{
  position:static!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:14px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  scale:1!important;
  zoom:1!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-form > *,
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-form .form-row{
  position:static!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-inline:0!important;
  box-sizing:border-box!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-form .form-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-form :where(input,textarea,select,.input){
  position:static!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  inset:auto!important;
  transform:none!important;
  scale:1!important;
  zoom:1!important;
  box-sizing:border-box!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-form textarea{
  resize:vertical!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:15px!important;
  width:100%!important;
  max-width:100%!important;
}
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-certificates-body,
body.app-body #view.mrph-medcore-profile-view .mrph-medcore-certificates-body > *{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.app-body #view.mrph-medcore-profile-view img{
  display:block!important;
  max-width:100%!important;
  height:auto!important;
}
body.app-body .mrph-medcore-profile-surface::before,
body.app-body .mrph-medcore-profile-surface::after,
body.app-body .mrph-medcore-profile-hero::after{
  display:none!important;
  content:none!important;
}
body.app-body .mrph-medcore-profile-surface,
body.app-body .mrph-medcore-profile-hero,
body.app-body .mrph-medcore-account-summary,
body.app-body .mrph-medcore-certificate-note{
  transform:none!important;
  filter:none!important;
  scale:1!important;
  zoom:1!important;
}
html[data-mrph-khalid-touch-feel="v99"] body.app-body .mrph-medcore-profile-surface.mrph-kt-feel-host::after,
html[data-mrph-khalid-touch-feel="v99"] body.app-body .mrph-medcore-profile-hero.mrph-kt-feel-host::after,
html[data-mrph-khalid-touch-feel="v99"] body.app-body .mrph-medcore-account-summary.mrph-kt-feel-host::after,
html[data-mrph-khalid-touch-feel="v99"] body.app-body .mrph-medcore-certificate-note.mrph-kt-feel-host::after{
  display:none!important;
  content:none!important;
}
@media(max-width:1050px){
  body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:620px){
  body.app-body #view.mrph-medcore-profile-view{
    padding:20px 17px!important;
  }
  body.app-body #view.mrph-medcore-profile-view .mrph-medcore-profile-footer{
    align-items:stretch!important;
    flex-direction:column!important;
  }
}

/* Final PH identity guard: use the same existing PH mark everywhere in-app. */
html body .logo-mark,
html body .mrph-pwa-install__icon,
html body .mrph-hameed-channel-v1 .mrph-hameed-channel-monogram-v1{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  padding:0!important;
  color:#052332!important;
  background-image:none!important;
  background:linear-gradient(145deg,#ffffff 0%,#f4ffff 46%,#d9eef0 100%)!important;
  border:1px solid rgba(241,255,255,.98)!important;
  border-radius:29%!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:-3px!important;
  text-shadow:none!important;
  box-shadow:
    0 0 0 1px rgba(83,222,228,.26),
    0 0 0 5px rgba(61,208,216,.055),
    0 10px 24px rgba(0,9,15,.24),
    inset 0 1px 0 #ffffff,
    inset 0 -8px 18px rgba(26,159,171,.08)!important;
}
html body .logo-mark::before,
html body .mrph-pwa-install__icon::before,
html body .mrph-hameed-channel-v1 .mrph-hameed-channel-monogram-v1::before{
  content:none!important;
  display:none!important;
}
html body .logo-mark::after,
html body .mrph-pwa-install__icon::after,
html body .mrph-hameed-channel-v1 .mrph-hameed-channel-monogram-v1::after{
  content:""!important;
  position:absolute!important;
  display:block!important;
  inset:6px!important;
  border:1px solid rgba(7,72,86,.10)!important;
  border-radius:inherit!important;
  background:transparent!important;
  pointer-events:none!important;
}
html body .mrph-hameed-channel-v1 .mrph-hameed-channel-monogram-v1 span{
  position:relative!important;
  z-index:1!important;
  display:inline!important;
  color:#052332!important;
  font:inherit!important;
  letter-spacing:-3px!important;
}
html body .mrph-hameed-channel-v1 .mrph-hameed-channel-monogram-v1 img{
  display:none!important;
}
html body .mrph-pwa-install__icon-wrap{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
