/* =========================================================
   My Day — Round 37 stabilization
   Look-preserving stability fixes per audit
   `villa-my-day-round36-stress-audit.md`. No visual redesign.

   Scope:
   1. While My Day overlay is foreground, the mobile Schedule
      sticky action bar (`.msx-mobile-actionbar`, z-index 9000)
      sat ABOVE My Day's overlay (`.vs-overlay`, z-index 260)
      and intercepted taps on the My Day footer — most visibly
      `+ Create Reminder` at 390px width. Hide that bar while
      My Day is open.

      Hook: `body[data-myday-overlay-open="1"]` is already set
      by `myday_stress_fixes.js:269` whenever the My Day shell
      opens, and removed on close. We piggy-back on that flag.
   ========================================================= */

body[data-myday-overlay-open="1"] .msx-mobile-actionbar,
body[data-myday-overlay-open="1"] #msxMobileActionBar {
  display: none !important;
  pointer-events: none !important;
}

/* Belt-and-suspenders: also hide if the schedule view is not
   currently the visible top-level view. The action bar is only
   meaningful while #vScheduler is the active page. When My Day
   is foreground vScheduler is `inert` + `aria-hidden`, so
   keying off the My Day flag is sufficient — but if some other
   route paints over Schedule the bar should not bleed through. */
body[data-myday-overlay-open="1"] #msxMobileActionBar.msx-mobile-actionbar {
  visibility: hidden !important;
}
