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

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

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

.uth-random-text-generator .uth-tool-panel {
	--uth-random-text-tool-height: 360px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
	grid-template-rows: auto var(--uth-random-text-tool-height);
	grid-template-areas:
		"label ."
		"input sidebar";
	gap: 0 22px;
	align-items: start;
}

.uth-random-text-generator .uth-form-row {
	display: contents;
	margin: 0;
}

.uth-random-text-generator .uth-field-label {
	grid-area: label;
	margin-bottom: 7px;
	font-size: 0.88rem;
}

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

.uth-random-text-output {
	display: block;
	min-height: var(--uth-random-text-tool-height);
	height: var(--uth-random-text-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-random-text-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-random-text-generator .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-random-text-generator .uth-icon-button:hover,
.uth-random-text-generator .uth-icon-button:focus-visible {
	color: var(--uth-primary);
	background: rgba(37, 99, 235, 0.1);
	outline: none;
	transform: translateY(-1px);
}

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

.uth-random-text-generator .uth-icon-button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.uth-random-text-sidebar {
	grid-area: sidebar;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	height: var(--uth-random-text-tool-height);
	min-height: var(--uth-random-text-tool-height);
	align-content: start;
}

.uth-random-field {
	display: grid;
	gap: 5px;
	color: var(--uth-heading);
	font-size: 0.78rem;
	font-weight: 750;
	line-height: 1.2;
}

.uth-random-field .uth-input,
.uth-random-field .uth-select {
	min-height: 36px;
	padding: 8px 10px;
	font-size: 0.86rem;
	border-radius: 10px;
}

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

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

.uth-random-generate {
	grid-column: 1 / -1;
	min-height: 40px;
	padding: 9px 12px;
	color: #ffffff;
	background: linear-gradient(135deg, var(--uth-primary), #0f766e);
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 800;
	cursor: pointer;
	transition: filter 160ms ease, transform 160ms ease;
}

.uth-random-generate:hover,
.uth-random-generate:focus-visible {
	filter: brightness(0.96);
	outline: none;
	transform: translateY(-1px);
}

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

.uth-random-text-generator .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-random-text-generator .uth-result-card::before {
	content: none;
}

.uth-random-text-generator .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-random-text-generator .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-random-text-generator .uth-tool-panel {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"label"
			"input"
			"sidebar";
	}

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

@media (max-width: 480px) {
	.uth-random-text-generator .uth-tool-panel {
		--uth-random-text-tool-height: 280px;
	}

	.uth-random-text-sidebar {
		grid-template-columns: 1fr;
	}
}
