.drawer-edge-zone { display:none; }
@media(max-width:760px) {
  /* Keep chart/footer layout unchanged; only drawers extend over the footer. */
  html:not(.chart-pane) .chart-workspace {
    overflow:visible;
    clip-path:inset(0 0 calc(0px - var(--drawer-footer-overlap, 0px)) 0);
    z-index:1;
  }
  html:not(.chart-pane) #chartWorkspace > :is(#stockPanel,#watchlistPanel) {
    bottom:calc(0px - var(--drawer-footer-overlap, 0px));
    background:var(--panel);
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
}
@media(max-width:760px) and (any-pointer:coarse) {
  .drawer-edge-zone { display:block; position:absolute; z-index:27; top:0; bottom:0; width:16px; touch-action:pan-y pinch-zoom; }
  .drawer-edge-left { left:0; }
  .drawer-edge-right { right:0; }
  .chart-workspace:not(.stock-panel-closed) > .drawer-edge-left,
  .chart-workspace:not(.watchlist-closed) > .drawer-edge-right { display:none; }
  .stock-panel.drawer-swipe-front,.watchlist-panel.drawer-swipe-front { z-index:26; }
  .stock-panel-dock-toggle,.watchlist-dock-toggle { z-index:30; }
}
