/* 2026-11-16 SIDEBAR LAYERS (the way ChatGPT opens its menu): the sheet is a rounded card on top, with a soft shadow, and the chat column underneath
   slides a little to the right while the sheet comes in (both follow the finger when it is dragged: motion.js sets --side-p, 0 = shut, 1 = open).
   Only the sheet and the chat column (header, messages, message bar: motion.js marks them .side-push while the menu is open) move. No screen
   (calendar, settings, ...) is ever touched, and a person who asks for reduced motion gets the rounded sheet and nothing sliding. */
.side-sheet{
  border-right:0;
  border-radius:0 28px 28px 0;
  transition:transform .42s cubic-bezier(.32,.72,0,1), box-shadow .42s ease;
}
#sidePanel.show .side-sheet{ box-shadow:16px 0 44px -10px rgba(0,0,0,.5); }
#sidePanel{ transition:background-color .42s ease, visibility 0s linear .42s; }
#sidePanel.show{ transition:background-color .42s ease, visibility 0s; }

#app > .side-push{ transition:transform .42s cubic-bezier(.32,.72,0,1); will-change:transform; }
body.side-open #app > .side-push{ transform:translate3d(calc(var(--side-p, 1) * 28px), 0, 0); }
body.side-dragging #app > .side-push{ transition:none; }

@media (prefers-reduced-motion: reduce){
  .side-sheet, #sidePanel, #sidePanel.show{ transition:none; }
  #app > .side-push{ transition:none; transform:none !important; }
}
