/* FITPLAN V803 - stable authenticated shell, topbar collision fix, no visual jump on refresh */
html.fitplan-v800-auth-pending .web-shell,
html.fitplan-v803-ui-pending .web-shell{visibility:hidden!important;pointer-events:none!important}
#fitplanCoachAuthV800[hidden]{display:none!important}

/* One compact action row: search + optional client + notifications + tenant/logout. */
.coach-ux-v769 .coach-topbar-v750{
  grid-template-columns:minmax(180px,230px) minmax(210px,1fr) minmax(330px,520px)!important;
  gap:12px!important;align-items:center!important;overflow:visible!important
}
.coach-ux-v769 .ux-v769-top-actions{
  width:100%!important;min-width:0!important;max-width:520px!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:7px!important;flex-wrap:nowrap!important;justify-self:end!important
}
.coach-ux-v769 .coach-topbar-v750>.fitplan-tenant-bar-v800{display:none!important}
.coach-ux-v769 .ux-v769-top-actions>.ux-v769-save-pill{display:none!important}
.coach-ux-v769 .ux-v769-search-trigger{flex:1 1 145px!important;width:auto!important;min-width:44px!important;max-width:180px!important}
.coach-ux-v769 .ux-v769-client-context{flex:0 1 150px!important;max-width:150px!important;min-width:0!important}
.coach-ux-v769 .fitplan-tenant-bar-v800{display:flex!important;flex:0 1 auto!important;min-width:0!important;margin-left:0!important;gap:6px!important}
.coach-ux-v769 .fitplan-tenant-pill-v800{max-width:150px!important;min-width:0!important;padding:7px 9px!important}
.coach-ux-v769 .fitplan-logout-v800{flex:0 0 auto!important}

@media(max-width:1320px){
  .coach-ux-v769 .coach-topbar-v750{grid-template-columns:minmax(170px,220px) minmax(170px,1fr) minmax(260px,390px)!important}
  .coach-ux-v769 .ux-v769-search-trigger{width:44px!important;flex:0 0 44px!important;padding:0!important;justify-content:center!important}
  .coach-ux-v769 .ux-v769-search-trigger span,.coach-ux-v769 .ux-v769-search-trigger kbd{display:none!important}
  .coach-ux-v769 .fitplan-tenant-pill-v800{max-width:125px!important}
}
@media(max-width:980px){
  .coach-ux-v769 .coach-topbar-v750{grid-template-columns:minmax(0,1fr) auto!important}
  .coach-ux-v769 .coach-topbar-brand-v750{display:none!important}
  .coach-ux-v769 .ux-v769-top-actions{max-width:none!important;width:auto!important}
  .coach-ux-v769 .ux-v769-client-context{display:none!important}
}
@media(max-width:680px){
  .coach-ux-v769 .coach-topbar-v750{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  .coach-ux-v769 .coach-topbar-copy-v750{min-width:0!important}
  .coach-ux-v769 .ux-v769-top-actions{gap:5px!important}
  .coach-ux-v769 .fitplan-tenant-pill-v800{display:none!important}
  .coach-ux-v769 .fitplan-logout-v800{padding:7px 9px!important}
}

/* Navigation is generated once with its final items, so no duplicate/reinserted Guide button. */
#fitplanTutorialReopenV793{margin-top:2px!important}
