/* Site-wide character palette — field trigger + table-style overlay */

.oretek-char-trigger {
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	position: fixed;
	z-index: 1080;
	display: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	margin: 0;
	padding: 6px;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #7A7A7A;
	cursor: pointer;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.oretek-char-trigger.is-on {
	display: inline-flex;
}

.oretek-char-trigger:hover,
.oretek-char-trigger:focus-visible,
.oretek-char-trigger.is-open {
	background-color: rgba(139, 171, 188, 0.25);
	color: rgba(139, 171, 188, 0.8);
	border-radius: 2px;
}

.oretek-char-trigger:focus-visible {
	outline: 1px solid rgba(139, 171, 188, 0.8);
	outline-offset: 1px;
}

.oretek-char-trigger svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	flex-shrink: 0;
	pointer-events: none;
}

.oretek-char-palette {
	box-sizing: border-box;
	position: fixed;
	z-index: 1090;
	display: none;
	width: max-content;
	margin: 0;
	padding: 6px;
	background: rgba(139, 171, 188, 0.25);
	border: 1px solid rgba(139, 171, 188, 0.3);
	border-radius: 6px;
	box-shadow: none;
}

.oretek-char-palette.is-open {
	display: block;
}

.oretek-char-grid {
	display: grid;
	grid-template-columns: repeat(6, 32px);
	gap: 0;
}

.oretek-char-cell {
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 6px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #40433E;
	font-family: system-ui, "Segoe UI", Nunito, sans-serif;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.oretek-char-cell.is-indent {
	justify-content: flex-start;
}

.oretek-char-cell.is-indent-1 {
	padding-left: 8px;
}

.oretek-char-cell.is-indent-2 {
	padding-left: 16px;
}

.oretek-char-cell:hover,
.oretek-char-cell:focus-visible {
	background: rgba(139, 171, 188, 0.8);
	color: rgba(251, 252, 252, 1);
	outline: none;
}
