/* HF53 final route-scoped layout firewall.
 * The workflow markup and data remain owned by HF52. This late layer only
 * guarantees fixed-header clearance and the real Human Support launcher size.
 */
body.nasfim-institution-layout-hf53-page .nasfim-idav1[data-template-version="hf52"],
body.nasfim-institution-layout-hf53-page .nasfim-inv1[data-template-version="hf52"]{
  --nasfim-hf53-route-clearance:116px;
  padding-top:var(--nasfim-hf53-route-clearance)!important;
  scroll-margin-top:var(--nasfim-hf53-route-clearance)!important;
  overflow:visible!important;
}
body.admin-bar.nasfim-institution-layout-hf53-page .nasfim-idav1[data-template-version="hf52"],
body.admin-bar.nasfim-institution-layout-hf53-page .nasfim-inv1[data-template-version="hf52"]{
  --nasfim-hf53-route-clearance:148px;
}
body.nasfim-institution-layout-hf53-page .ida-kpis,
body.nasfim-institution-layout-hf53-page .in-kpis{
  position:relative!important;
  z-index:2!important;
}

/* Actual Human Support launcher shown as “Need Help?” in live UAT. */
body.nasfim-institution-layout-hf53-page .nasfim-support-centre.is-floating{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  overflow:visible!important;
  z-index:999999!important;
}
body.nasfim-institution-layout-hf53-page .nasfim-support-centre.is-floating>.nasfim-support-launcher{
  display:flex!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  max-width:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  box-shadow:0 10px 28px rgba(4,35,83,.20)!important;
}
body.nasfim-institution-layout-hf53-page .nasfim-support-centre.is-floating>.nasfim-support-launcher .nasfim-support-launcher-label{
  display:none!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  opacity:0!important;
  visibility:hidden!important;
}
body.nasfim-institution-layout-hf53-page .nasfim-support-centre.is-floating>.nasfim-support-launcher .nasfim-support-launcher-icon{
  display:grid!important;
  place-items:center!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  margin:0!important;
  border-radius:50%!important;
}

/* Retain compatibility with the older chat assistant if it is enabled. */
body.nasfim-institution-layout-hf53-page .nasfim-chat-assistant.is-floating{
  right:18px!important;
  bottom:18px!important;
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  z-index:999998!important;
}
body.nasfim-institution-layout-hf53-page .nasfim-chat-assistant.is-floating>.nasfim-chat-launcher{
  width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;
  padding:0!important;gap:0!important;justify-content:center!important;border-radius:50%!important;overflow:hidden!important;
}
body.nasfim-institution-layout-hf53-page .nasfim-chat-assistant.is-floating .nasfim-chat-launcher-label{display:none!important;width:0!important;max-width:0!important;overflow:hidden!important}
body.nasfim-institution-layout-hf53-page .nasfim-chat-assistant.is-floating .nasfim-chat-launcher-icon{width:52px!important;height:52px!important;margin:0!important;border-radius:50%!important}

/* Keep right-edge controls clear of the launcher at short viewport heights. */
body.nasfim-institution-layout-hf53-page .ida-table-footer,
body.nasfim-institution-layout-hf53-page .in-table-footer,
body.nasfim-institution-layout-hf53-page .ida-trust-strip,
body.nasfim-institution-layout-hf53-page .in-side-rail{
  position:relative!important;
}

@media (max-width:860px){
  body.nasfim-institution-layout-hf53-page .nasfim-idav1[data-template-version="hf52"],
  body.nasfim-institution-layout-hf53-page .nasfim-inv1[data-template-version="hf52"]{
    --nasfim-hf53-route-clearance:16px;
  }
  body.nasfim-institution-layout-hf53-page .nasfim-support-centre.is-floating,
  body.nasfim-institution-layout-hf53-page .nasfim-chat-assistant.is-floating{
    right:12px!important;
    bottom:84px!important;
  }
}
