.xtool-ct-nav {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* justify-content:stretch does not actually stretch flex items to fill a
   row's width in real browsers, despite the name — a real flex:1 on each
   button is what makes "Justify" alignment actually work. */
.xtool-ct-nav--justify .xtool-ct-nav__btn {
	flex: 1 1 0;
	min-width: 0;
}

.xtool-ct-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 10px 20px;
	margin: 0 !important;
	cursor: pointer;
	font: inherit;
	color: inherit;
	line-height: normal;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	outline: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xtool-ct-nav__btn:focus-visible {
	outline: 2px solid #1C1C1E;
	outline-offset: 2px;
}

.xtool-ct-nav__btn[aria-disabled="true"] {
	cursor: pointer;
}

.xtool-ct-editor-badge {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	background: #1C1C1E;
	color: #fff;
	font: 600 11px/1.4 -apple-system, sans-serif;
	padding: 2px 8px;
	border-radius: 0 0 6px 0;
}

.xtool-ct-panel--flash {
	outline: 2px solid #1C1C1E;
	outline-offset: 4px;
	transition: outline-color 0.4s ease;
}

.xtool-ct-panel {
	box-sizing: border-box;
}
