/* Shared navigation additions for the AI nutritionist. Loaded by ce-app-layer.php. */
html body #ce-floating-nav-v1,
html body #ce-floating-nav-v1.ce-fnav-no-smart {
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(0,1fr)!important;
  grid-template-columns:none!important;
  grid-template-rows:minmax(0,1fr)!important;
}
/* Keep the same visible order even when a cached legacy script reorders the DOM. */
html body #ce-floating-nav-v1 > .ce-fnav-history {order:10!important}
html body #ce-floating-nav-v1 > .ce-fnav-challenge {order:20!important}
html body #ce-floating-nav-v1 > .ce-fnav-home {order:30!important}
html body #ce-floating-nav-v1 > .ce-fnav-ai {order:40!important}
html body #ce-floating-nav-v1 > .ce-fnav-friends {order:50!important}
html body #ce-floating-nav-v1 > .ce-fnav-premium {order:60!important}
html body #ce-floating-nav-v1 .ce-fnav-ai {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#ffa766;text-decoration:none;
}
html body #ce-floating-nav-v1 .ce-fnav-ai svg {width:25px;height:25px;flex:none}
html body #ce-floating-nav-v1 .ce-fnav-premium.ce-premium-is-active {display:none!important}
html body[data-ce-premium="1"] #ce-floating-nav-v1 .ce-fnav-premium {display:none!important}
