.utm-page {
	/*padding: clamp(60px, 8vw, 120px) 0;*/
	background: var(--bg);
	color: var(--text);
}

.utm-header {
	margin-bottom: 48px;
}


.utm-header__eyebrow {
	margin-bottom: 12px;
	color: var(--brightpurple);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}


.utm-header h1 {
	margin: 0 0 16px;
	color: var(--title);
}


.utm-header h1 span {
	color: var(--brightgreen);
}


.utm-header__intro {
	max-width: 720px;
	margin: 0;
	color: var(--text-secondary);
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}


.utm-builder,
.utm-results {
	padding: clamp(24px, 4vw, 48px);
	background: var(--bg-level1);
	border-radius: 20px;
}


.utm-builder__top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	margin-bottom: 48px;
}


.utm-field__heading {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}


.utm-field__heading h2 {
	margin: 0 0 4px;
	font-size: 1.7rem;
	color: var(--title);
}


.utm-field__heading p {
	margin: 0;
	color: var(--text-secondary);
}


.utm-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	/*background: var(--brightpurple);*/
	border: 1px solid var(--brightgreen);
	background: rgba(7, 221, 108, 0.04);
	color: var(--brightgreen);
	font-weight: 700;
}


.utm-input {
	width: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--strong-line);
	border-radius: 12px;
	color: var(--text);
	font: inherit;
	outline: none;
	transition:
		border-color 0.2s ease,
		background 0.2s ease;
}


.utm-input:focus {
	border-color: var(--brightgreen);
	background: rgba(255, 255, 255, 0.05);
}


.utm-input::placeholder {
	color: var(--text-secondary);
}


.utm-normalized-name {
	margin: 10px 0 0;
	color: var(--text-secondary);
	font-size: 0.9rem;
}


.utm-normalized-name strong {
	color: var(--brightgreen);
}


.utm-channel-group {
	margin-top: 30px;
}


.utm-channel-group h3 {
	margin: 0 0 14px;
	font-size: 1.3rem;
	color: var(--title);
}


.utm-channels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 14px;
}


.utm-channel {
	position: relative;
}


.utm-channel__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}


.utm-channel__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 145px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--strong-line);
	border-radius: 20px;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease;
}


.utm-channel:hover .utm-channel__inner {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.05);
}


.utm-channel__input:focus-visible + .utm-channel__inner {
	outline: 2px solid var(--brightgreen);
	outline-offset: 3px;
}


.utm-channel__input:checked + .utm-channel__inner {
	border-color: var(--brightgreen);
	background: rgba(7, 221, 108, 0.04);
}


.utm-channel__icon {
	display: block;
	width: 38px;
	height: 38px;
	margin-bottom: auto;
}


.utm-channel__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}


.utm-channel__name {
	display: block;
	margin-top: 20px;
	font-weight: 600;
	color: var(--text);
}


.utm-channel__check {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid var(--strong-line);
	border-radius: 50%;
	color: transparent;
}


.utm-channel__input:checked + .utm-channel__inner .utm-channel__check {
	background: var(--brightgreen);
	border-color: var(--brightgreen);
	color: var(--bg);
}


.utm-custom-source {
	max-width: 500px;
	margin-top: 24px;
}


.utm-custom-source label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}


.utm-content {
	margin-top: 40px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.025);
}


.utm-content__toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}


.utm-content__toggle small {
	margin-left: 5px;
	color: var(--text-secondary);
}


.utm-content__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--brightgreen);
	color: var(--bg);
	font-size: 1.4rem;
}


.utm-content__fields {
	max-width: 680px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}


.utm-content__fields label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}


.utm-content__fields p {
	margin: 0 0 12px;
	color: var(--text-secondary);
}


.utm-builder__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	margin-top: 28px;
}


.utm-error {
	margin: 0 auto 0 0;
	color: #ff8a8a;
}

.utm-field-error {
	margin: 8px 0 0;
	color: #ff8a8a;
	font-size: 0.9rem;
}

.utm-input.has-error {
	border-color: #ff8a8a;
}


.utm-results {
	margin-top: 20px;
}


.utm-results__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}


.utm-results__header h2 {
	margin: 0 0 4px;
}


.utm-results__header p {
	margin: 0;
	color: var(--text-secondary);
}


.utm-copy-all,
.utm-result__copy {
	padding: 5px 20px;
	background: transparent;
	border: 1px solid var(--brightgreen);
	border-radius: 999px;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: .2s;
}

.utm-copy-all:hover,
.utm-result__copy:hover {
text-decoration: none;
	transform: scale(1.05);
	transition: .2s;
}

.utm-result {
	display: grid;
	grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}


.utm-result__name {
	font-weight: 600;
}


.utm-result__url {
	min-width: 0;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--text-secondary);
	font-family: monospace;
	font-size: 0.85rem;
	white-space: nowrap;
	overflow-x: auto;
}


@media (max-width: 800px) {

	.utm-builder__top {
		grid-template-columns: 1fr;
	}


	.utm-results__header {
		align-items: flex-start;
		flex-direction: column;
	}


	.utm-result {
		grid-template-columns: 1fr auto;
	}


	.utm-result__url {
		grid-column: 1 / -1;
		grid-row: 2;
	}


}


@media (max-width: 520px) {

	.utm-channels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}


	.utm-channel__inner {
		min-height: 125px;
		padding: 16px;
	}


	.utm-builder,
	.utm-results {
		border-radius: 16px;
	}


	.utm-builder__actions {
		align-items: stretch;
		flex-direction: column;
	}


	.utm-builder__actions .button {
		width: 100%;
	}

}