.uth-palindrome-checker .uth-tool-header {
	max-width: none;
	margin: 0 0 18px;
	text-align: left;
}

.uth-palindrome-checker .uth-tool-title {
	font-size: clamp(1.65rem, 2.6vw, 2.45rem);
	line-height: 1.16;
}

.uth-palindrome-checker .uth-tool-description {
	max-width: 680px;
	margin: 8px 0 0;
	font-size: 0.96rem;
	line-height: 1.55;
}

.uth-palindrome-checker .uth-tool-panel {
	--uth-palindrome-tool-height: 320px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	grid-template-rows: auto var(--uth-palindrome-tool-height);
	grid-template-areas:
		"label ."
		"input sidebar";
	gap: 0 22px;
	align-items: start;
}

.uth-palindrome-checker .uth-form-row {
	display: contents;
	margin: 0;
}

.uth-palindrome-checker .uth-field-label {
	grid-area: label;
	margin-bottom: 7px;
	font-size: 0.88rem;
}

.uth-palindrome-input-wrap {
	position: relative;
	grid-area: input;
	min-height: var(--uth-palindrome-tool-height);
	height: var(--uth-palindrome-tool-height);
}

.uth-palindrome-textarea {
	display: block;
	min-height: var(--uth-palindrome-tool-height);
	height: var(--uth-palindrome-tool-height);
	padding-bottom: 54px;
	font-size: 0.96rem;
	line-height: 1.62;
	background:
		linear-gradient(#ffffff, #ffffff) padding-box,
		linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(15, 118, 110, 0.24)) border-box;
	border-color: transparent;
}

.uth-palindrome-actions {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 5px;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(203, 213, 225, 0.9);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.uth-palindrome-checker .uth-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: var(--uth-heading);
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.uth-palindrome-checker .uth-icon-button:hover,
.uth-palindrome-checker .uth-icon-button:focus-visible {
	color: var(--uth-primary);
	background: rgba(37, 99, 235, 0.1);
	outline: none;
	transform: translateY(-1px);
}

.uth-palindrome-checker .uth-icon-button:disabled {
	color: var(--uth-muted);
	cursor: not-allowed;
	opacity: 0.48;
	transform: none;
}

.uth-palindrome-checker .uth-icon-button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.uth-palindrome-sidebar {
	grid-area: sidebar;
	display: grid;
	gap: 8px;
	height: var(--uth-palindrome-tool-height);
	min-height: var(--uth-palindrome-tool-height);
	align-content: start;
}

.uth-palindrome-result {
	padding: 12px;
	color: var(--uth-muted);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.26);
	border-radius: 14px;
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.35;
}

.uth-palindrome-result.is-palindrome {
	color: #166534;
	background: rgba(21, 128, 61, 0.08);
	border-color: rgba(21, 128, 61, 0.24);
}

.uth-palindrome-result.is-not-palindrome {
	color: #991b1b;
	background: rgba(185, 28, 28, 0.08);
	border-color: rgba(185, 28, 28, 0.24);
}

.uth-palindrome-option {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	color: var(--uth-heading);
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1.2;
}

.uth-palindrome-option input {
	width: 15px;
	height: 15px;
	margin: 0;
}

.uth-palindrome-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin-top: 2px;
}

.uth-palindrome-checker .uth-result-card {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 0;
	box-shadow: none;
	text-align: left;
}

.uth-palindrome-checker .uth-result-card::before {
	content: none;
}

.uth-palindrome-checker .uth-result-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 26px;
	padding: 4px 9px;
	color: var(--uth-primary);
	background: rgba(37, 99, 235, 0.1);
	border: 1px solid rgba(37, 99, 235, 0.18);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
}

.uth-palindrome-checker .uth-result-label {
	margin: 0;
	color: var(--uth-heading);
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.25;
}

@media (max-width: 900px) {
	.uth-palindrome-checker .uth-tool-panel {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"label"
			"input"
			"sidebar";
	}

	.uth-palindrome-sidebar {
		height: auto;
		min-height: 0;
		margin-top: 4px;
	}
}

@media (max-width: 480px) {
	.uth-palindrome-checker .uth-tool-panel {
		--uth-palindrome-tool-height: 260px;
	}
}
