.workspaces-plus-modal {
  box-shadow: 0px 0px 17px 4px var(--background-modifier-box-shadow);
  z-index: var(--layer-menu);
}

.workspaces-plus-modal.quick-switch {
  width: unset;
}

.workspaces-plus-modal .prompt-instruction:last-child {
  margin-right: 0px;
}

.status-bar-item.plugin-workspaces-plus.mod-clickable {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-results:not(.renaming) .workspace-item.is-selected {
  background-color: var(--background-secondary);
  border-radius: 0.2em;
}

.rename-workspace {
  display: inline-block;
  position: absolute;
  right: 2.6em;
  margin-top: 0.5em;
  fill: var(--text-muted);
  opacity: 0;
}

.active-workspace {
  display: inline-block;
  position: absolute;
  left: 0.5em;
  margin-top: 0.5em;
  fill: var(--text-muted);
  z-index: 2;
}

.rename-workspace,
.delete-workspace {
  cursor: pointer;
}

.rename-workspace:hover,
.delete-workspace:hover {
  fill: var(--text-accent-hover);
}

.workspace-results {
  padding: 0.1em 0.1em;
  position: relative;
}

.prompt-results:not(.renaming) .workspace-item.is-selected ~ .rename-workspace,
.prompt-results:not(.renaming) .workspace-item.is-selected ~ .delete-workspace {
  opacity: 1;
}

.delete-workspace {
  display: inline-block;
  position: absolute;
  right: 1.2em;
  margin-top: 0.5em;
  fill: var(--text-muted);
  opacity: 0;
}

.workspace-item {
  display: inline-block;
  width: 100%;
  padding: 5px 4em 5px 2em;
  font-size: 16px;
  position: relative;
  cursor: pointer;
  white-space: normal;
  border: 1px solid transparent;
}

.workspaces-plus-color-scheme-icon > svg {
  fill: var(--text-muted);
}

.workspaces-plus-color-scheme-icon:hover > svg {
  fill: var(--text-normal);
}

.status-bar .plugin-workspaces-plus .status-bar-item-segment.icon {
  position: absolute;
}

.status-bar .plugin-workspaces-plus .status-bar-item-segment.name {
  margin-left: 1.4em;
}

.status-bar .plugin-workspaces-plus .icon svg {
  height: 16px;
  width: 16px;
  vertical-align: text-top;
}

.workspaces-plus-modal .workspace-item[contenteditable="true"]:focus {
  cursor: text;
  border: 1px solid var(--interactive-accent);
  background-color: var(--background-modifier-form-field);
  border-radius: 0.2em;
  box-shadow: 0 0 0 0.1px rgba(0, 0, 0, 0.1), 0 0 0 3px hsla(var(--accent-hsl), 0.15);
}

.workspace-item[contenteditable="true"]:focus ~ div {
  display: none;
}
