#app-mount {
	#bd-settingspane-container .contentColumn-2hrIYH {
		padding: 0 !important;
		& > div {
			display: flex;
			flex-grow: 1;
			flex-direction: column;
		}
		h2.ui-form-title.margin-bottom-20 {
			display: none;
		}
	}
	.checkbox {
		color: var(--text-normal);
		font-weight: var(--font-weight-normal);
	}
	.editor-wrapper {
		flex-grow: 1;
	}
	#bd-customcss-attach-controls {
		box-shadow: none;
		height: 50px;
		border-top: 1px solid var(--base-border);
		background: var(--background);
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: var(--spacing);
		.checkbox-group {
			li {
				margin-top: 0;
				.checkbox-inner + span {
					font-size: var(--font-size);
					margin-left: var(--spacing-half);
					color: var(--text-normal);
					font-weight: var(--font-weight-normal);
					line-height: normal;
					cursor: var(--cursor);
				}
			}
		}
		.checkbox-inner {
			width: 14px;
			height: 14px;
			display: flex;
			align-items: center;
			cursor: var(--cursor);
			&::after,
			&::before {
				content: none;
			}
			span {
				display: none;
			}
			input {
				display: inline-block;
				margin: 0;
			}
		}
	}
	#bd-customcss-detach-controls-button {
		button {
			margin: 0;
			margin-left: var(--spacing);
			font-size: var(--font-size);
			font-weight: var(--font-weight-normal);
			cursor: var(--cursor);
			min-height: var(--input-height);
			height: var(--input-height);
			line-height: normal;
			padding: 0 var(--spacing);
			border-radius: var(--button-border-radius) !important;
			color: var(--text-normal);
			background: var(--background-light);
			border: 1px solid var(--base-border) !important;
			&:hover {
				border: 1px solid currentColor !important;
			}
			&:focus {
				box-shadow: 0 0 0 1px currentColor !important;
				border: 1px solid currentColor !important;
			}
		}
		& > div,
		& > span {
			display: none;
		}
	}
	[aria-label*='SETTINGS'] .ace_editor {
		height: auto;
		flex-grow: 1;
	}
	#bd-customcss-detach-container {
		border-left: 1px solid var(--base-border);
		#bd-customcss-detach-editor {
			height: calc(100vh - var(--titlebar-height) - 50px);
		}
	}
}

// Light Mode
html.theme-light {
	#app-mount #bd-customcss-detach-controls-button button {
		&:hover {
			background: var(--background) !important;
			border: 1px solid var(--secondary-border) !important;
		}
		&:focus {
			box-shadow: 0 0 0 2px rgb(0, 0, 0, 0.05) !important;
			border: 1px solid var(--secondary-border) !important;
		}
	}
}
