/* FDS extension: shared upper-right collapse control for workspace sidebars. */
.ss-workspace-panel-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--fds-bg-panel, var(--fds-white));
}
.ss-workspace-panel-header > strong { margin-right: auto; }
.ss-workspace-panel-header .ss-panel-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  width: auto;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--fds-border);
  border-radius: var(--fds-radius-pill);
  background: var(--fds-bg-panel, var(--fds-white));
  color: var(--fds-text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.ss-panel-collapse svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ss-workspace-panel-header .ss-panel-collapse:hover { background: var(--fds-gray-50); }
.ss-workspace-panel-header .ss-panel-collapse:focus-visible { outline: 2px solid var(--fds-blue-600); outline-offset: 2px; }
@media (pointer: coarse) { .ss-workspace-panel-header .ss-panel-collapse { min-height: 44px; } }
