.workbench-switch {
  box-sizing: border-box;
  display: flex;
  flex: 0 1 140px;
  width: min(100%, 140px);
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-inline: auto;
  padding: 5px 12px;
  color: #606b7f;
  background: #f6f6f6;
  border: 1px solid #e3e7f1;
  border-radius: 9px;
  font: 500 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.workbench-switch:hover {
  color: #344054;
  background: #ecf0f5;
  border-color: #cad5e2;
}

.workbench-switch:focus-visible {
  outline: 2px solid #246bfd;
  outline-offset: -2px;
}

.workbench-switch-icon {
  flex: none;
  width: 14px;
  height: 14px;
  background: #858b9c;
  /* AppstoreFilled from Ant Design Icons */
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896'%3E%3Cpath d='M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z'/%3E%3C/svg%3E") center / contain no-repeat;
}

:is(.ant-layout-sider-collapsed, [class*="_railRow"]) .workbench-switch {
  flex-basis: 36px;
  width: min(100%, 36px);
  padding-inline: 0;
}

:is(.ant-layout-sider-collapsed, [class*="_railRow"]) .workbench-switch-label {
  display: none;
}
