/* A dedicated edge rail keeps the drawer handle off the price scale. */
.workspace .chart-grid {
  --handle-width: 26px;
}
.workspace .chart-grid > .chart-column {
  margin-right: var(--handle-width);
}
.workspace .chart-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--sidebar-width);
  width: var(--handle-width);
  z-index: 10;
  pointer-events: none;
  background: var(--surface2);
  border-left: 1px solid var(--line);
  transition: right 180ms ease;
}
.workspace.sidebar-hidden .chart-grid::after { right: 0; }
.workspace .chart-grid > #sidebarToggle {
  width: var(--handle-width);
  min-height: 78px;
  gap: 5px;
  padding: 6px 2px;
  background: var(--surface);
  color: var(--blue);
  border: 1px solid var(--active-line);
  border-right: 0;
  border-radius: 5px 0 0 5px;
  box-shadow: none;
}
.workspace .chart-grid > #sidebarToggle:hover,
.workspace .chart-grid > #sidebarToggle:focus-visible { background: var(--active); }
.workspace .chart-grid > #sidebarToggle:focus-visible { outline-offset: -3px; }
#sidebarToggle .panel-edge-label { font: 600 10px/1.1 system-ui, sans-serif; }
@media (pointer: coarse) {
  .workspace .chart-grid { --handle-width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace .chart-grid::after { transition: none; }
}
