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

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

.uth-pdf-compressor .uth-tool-description {
	max-width: 720px;
	margin: 8px 0 0;
	font-size: 0.96rem;
	line-height: 1.55;
}

.uth-pdf-compressor .uth-tool-panel {
	display: grid;
	gap: 18px;
}

/* ---------- Dropzone ---------- */
.uth-pdfc-dropzone {
	position: relative;
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 240px;
	padding: 34px 22px;
	text-align: center;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(15, 118, 110, 0.05));
	border: 2px dashed rgba(37, 99, 235, 0.38);
	border-radius: 20px;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.uth-pdfc-dropzone:hover,
.uth-pdfc-dropzone:focus-within,
.uth-pdfc-dropzone.is-dragover {
	border-color: var(--uth-primary);
	background: rgba(239, 246, 255, 0.85);
}

.uth-pdfc-dropzone.is-disabled {
	opacity: 0.55;
	pointer-events: none;
}

.uth-pdfc-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.uth-pdfc-dropzone__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
}

.uth-pdfc-dropzone__svg {
	width: 48px;
	height: 48px;
	color: var(--uth-primary);
}

.uth-pdfc-dropzone__title {
	margin: 4px 0 0;
	color: var(--uth-heading);
	font-size: 1.05rem;
	font-weight: 750;
	line-height: 1.4;
}

.uth-pdfc-dropzone__title strong {
	color: var(--uth-primary);
}

.uth-pdfc-dropzone__hint {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.85rem;
	line-height: 1.5;
}

.uth-pdfc-dropzone__privacy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	padding: 6px 12px;
	color: #065f46;
	background: rgba(16, 185, 129, 0.12);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1.3;
}

.uth-pdfc-privacy__lock {
	width: 0.8rem;
	height: 0.8rem;
	flex-shrink: 0;
	color: #065f46;
}

/* ---------- Selected file ---------- */
.uth-pdfc-file {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.uth-pdfc-file[hidden] {
	display: none;
}

.uth-pdfc-file__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	color: var(--uth-primary);
	background: var(--uth-section-background);
	border-radius: 12px;
}

.uth-pdfc-file__icon svg {
	width: 24px;
	height: 24px;
}

.uth-pdfc-file__info {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.uth-pdfc-file__name {
	overflow: hidden;
	color: var(--uth-heading);
	font-size: 0.95rem;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uth-pdfc-file__meta {
	color: var(--uth-muted);
	font-size: 0.82rem;
	line-height: 1.4;
}

.uth-pdfc-file__remove {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin-left: auto;
	color: var(--uth-muted);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.uth-pdfc-file__remove:hover,
.uth-pdfc-file__remove:focus-visible {
	color: var(--uth-danger);
	background: rgba(185, 28, 28, 0.06);
	border-color: rgba(185, 28, 28, 0.22);
	outline: none;
}

.uth-pdfc-file__remove svg {
	width: 18px;
	height: 18px;
}

/* ---------- Settings ---------- */
.uth-pdfc-settings {
	display: grid;
	gap: 20px;
	padding: 22px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-pdfc-settings[hidden] {
	display: none;
}

.uth-pdfc-section-label {
	display: block;
	margin: 0 0 10px;
	color: var(--uth-heading);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.4;
}

.uth-pdfc-modes {
	margin: 0;
	padding: 0;
	border: 0;
}

.uth-pdfc-mode-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.uth-pdfc-mode {
	position: relative;
	display: block;
	cursor: pointer;
}

.uth-pdfc-mode input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.uth-pdfc-mode__body {
	display: block;
	height: 100%;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 16px;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.uth-pdfc-mode:hover .uth-pdfc-mode__body,
.uth-pdfc-mode input:focus-visible + .uth-pdfc-mode__body {
	border-color: rgba(37, 99, 235, 0.5);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.uth-pdfc-mode input:checked + .uth-pdfc-mode__body {
	border-color: var(--uth-primary);
	background: var(--uth-section-background);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.uth-pdfc-mode__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
}

.uth-pdfc-mode__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	color: var(--uth-primary);
	background: var(--uth-section-background);
	border-radius: 10px;
}

.uth-pdfc-mode input:checked + .uth-pdfc-mode__body .uth-pdfc-mode__icon {
	color: #ffffff;
	background: linear-gradient(135deg, var(--uth-primary), #0f766e);
}

.uth-pdfc-mode__icon svg {
	width: 20px;
	height: 20px;
}

.uth-pdfc-mode__title {
	color: var(--uth-heading);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.uth-pdfc-mode__desc {
	display: block;
	color: var(--uth-muted);
	font-size: 0.85rem;
	line-height: 1.55;
}

/* ---------- Target ---------- */
.uth-pdfc-target {
	display: grid;
	gap: 12px;
}

.uth-pdfc-target[hidden] {
	display: none;
}

.uth-pdfc-target__row {
	display: grid;
	grid-template-columns: 1fr 130px;
	gap: 10px;
	max-width: 360px;
}

.uth-pdfc-target__input,
.uth-pdfc-target__unit {
	min-height: 44px;
}

.uth-pdfc-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.uth-pdfc-preset {
	padding: 8px 14px;
	color: var(--uth-heading);
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.uth-pdfc-preset:hover,
.uth-pdfc-preset:focus-visible {
	color: var(--uth-primary-hover);
	border-color: rgba(37, 99, 235, 0.4);
	outline: none;
}

.uth-pdfc-preset.is-active {
	color: #ffffff;
	background: linear-gradient(135deg, var(--uth-primary), #0f766e);
	border-color: var(--uth-primary);
}

.uth-pdfc-actions {
	display: flex;
	justify-content: center;
}

.uth-pdfc-actions .uth-button {
	min-width: 220px;
}

.uth-pdfc-note {
	margin: 0;
	padding: 12px 14px;
	color: #92400e;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.28);
	border-radius: 12px;
	font-size: 0.88rem;
	line-height: 1.55;
}

.uth-pdfc-note[hidden] {
	display: none;
}

/* ---------- Progress ---------- */
.uth-pdfc-progress {
	display: grid;
	gap: 10px;
	padding: 22px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-pdfc-progress[hidden] {
	display: none;
}

.uth-pdfc-progress__bar {
	height: 10px;
	background: var(--uth-section-background);
	border: 1px solid var(--uth-border);
	border-radius: 999px;
	overflow: hidden;
}

.uth-pdfc-progress__fill {
	display: block;
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, var(--uth-primary), #0f766e);
	border-radius: 999px;
	transition: width 220ms ease;
}

.uth-pdfc-progress__text {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: center;
}

/* ---------- Result ---------- */
.uth-pdfc-result {
	display: grid;
	gap: 16px;
	padding: 24px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-pdfc-result[hidden] {
	display: none;
}

.uth-pdfc-result__heading {
	margin: 0;
	color: var(--uth-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.uth-pdfc-result__summary {
	margin: 0 auto;
	max-width: 620px;
	color: var(--uth-text);
	font-size: 0.98rem;
	line-height: 1.65;
	text-align: center;
}

.uth-pdfc-result__note {
	margin: 0 auto;
	max-width: 620px;
	padding: 12px 14px;
	color: #92400e;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.28);
	border-radius: 12px;
	font-size: 0.88rem;
	line-height: 1.55;
}

.uth-pdfc-result__note[hidden] {
	display: none;
}

.uth-pdfc-result .uth-result-card {
	min-width: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	.uth-pdfc-mode-grid {
		grid-template-columns: 1fr;
	}

	.uth-pdfc-target__row {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.uth-pdfc-settings {
		padding: 16px;
	}

	.uth-pdfc-actions .uth-button {
		width: 100%;
		min-width: 0;
	}
}
