.toolhub-merge-pdf__dropzone {
	display: grid;
	gap: 0.2rem;
	margin-bottom: 1rem;
	padding: 1.3rem;
	border: 2px dashed #9aa8bb;
	border-radius: 12px;
	background: #f7f9fc;
	cursor: pointer;
	text-align: center;
}

.toolhub-merge-pdf__dropzone.is-dragging {
	border-color: var(--thub-accent);
	background: var(--thub-accent-soft);
}

.toolhub-merge-pdf__dropzone:focus-visible {
	outline: 3px solid rgba(23, 105, 224, 0.28);
	outline-offset: 2px;
}

.toolhub-merge-pdf__list {
	display: grid;
	gap: 0.65rem;
	margin: 0 0 1rem;
}

.toolhub-merge-pdf__item {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: center;
	padding: 0.7rem;
	border: 1px solid var(--thub-border);
	border-radius: 10px;
	background: var(--thub-surface-alt);
}

.toolhub-merge-pdf__number {
	display: grid;
	width: 2rem;
	height: 2rem;
	place-items: center;
	border-radius: 50%;
	background: var(--thub-accent-soft);
	color: var(--thub-accent-dark);
	font-weight: 750;
}

.toolhub-merge-pdf__item-details {
	display: grid;
	min-width: 0;
	gap: 0.15rem;
}

.toolhub-merge-pdf__item-details strong,
.toolhub-merge-pdf__item-details span {
	overflow-wrap: anywhere;
}

.toolhub-merge-pdf__item-details span {
	color: var(--thub-muted);
	font-size: 0.82rem;
}

.toolhub-merge-pdf__item-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem;
}

.toolhub-merge-pdf__item-actions .toolhub-button {
	min-height: 34px;
	padding: 0.38rem 0.55rem;
	font-size: 0.78rem;
}

@media (max-width: 620px) {
	.toolhub-merge-pdf__item {
		grid-template-columns: 2rem minmax(0, 1fr);
	}

	.toolhub-merge-pdf__item-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 360px) {
	.toolhub-merge-pdf__item-actions .toolhub-button {
		flex: 1 1 5rem;
	}
}
