/* ---------- Dropzone ---------- */
.uth-exr-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 34px 22px;
	text-align: center;
	background: var(--uth-background);
	border: 2px dashed #cbd5e1;
	border-radius: var(--uth-radius-large);
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.uth-exr-dropzone:hover,
.uth-exr-dropzone:focus-within,
.uth-exr-dropzone.is-dragover {
	border-color: var(--uth-primary);
	background: var(--uth-section-background);
}

.uth-exr-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.uth-exr-dropzone__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	color: var(--uth-primary);
	background: var(--uth-section-background);
	border-radius: 50%;
}

.uth-exr-dropzone__svg {
	width: 30px;
	height: 30px;
}

.uth-exr-dropzone__title {
	margin: 0;
	color: var(--uth-heading);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
}

.uth-exr-dropzone__title strong {
	color: var(--uth-primary);
	font-weight: 700;
}

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

.uth-exr-dropzone__privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 6px 0 0;
	color: var(--uth-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.uth-exr-privacy__lock {
	flex: none;
	width: 15px;
	height: 15px;
	color: var(--uth-success);
}

/* ---------- File bar ---------- */
.uth-exr-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: var(--uth-radius-medium);
}

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

.uth-exr-file__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

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

.uth-exr-file__meta {
	color: var(--uth-muted);
	font-size: 0.8rem;
}

.uth-exr-file__remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	padding: 8px 12px;
	color: var(--uth-danger);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease;
}

.uth-exr-file__remove:hover,
.uth-exr-file__remove:focus-visible {
	background: rgba(225, 29, 72, 0.08);
	outline: none;
}

.uth-exr-file__remove svg {
	flex: none;
}

/* ---------- Editor ---------- */
.uth-exr-editor {
	display: grid;
	gap: 18px;
}

.uth-exr-editor[hidden] {
	display: none;
}

.uth-exr-spec {
	padding: 14px 16px;
	background: var(--uth-section-background);
	border: 1px solid var(--uth-border);
	border-radius: var(--uth-radius-medium);
}

.uth-exr-spec__title {
	margin: 0 0 4px;
	color: var(--uth-muted);
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.uth-exr-spec__value {
	margin: 0;
	color: var(--uth-heading);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.5;
}

.uth-exr-spec__note {
	margin: 6px 0 0;
	color: var(--uth-muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.uth-exr-preview {
	display: grid;
	gap: 8px;
}

.uth-exr-preview__label {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.uth-exr-preview__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background:
		repeating-conic-gradient(#f0f2f6 0% 25%, #fbfcfe 0% 50%) 0 0 / 22px 22px;
	border: 1px solid var(--uth-border);
	border-radius: var(--uth-radius-large);
}

.uth-exr-preview__canvas {
	max-width: 100%;
	max-height: 320px;
	background: #fff;
	border: 1px solid var(--uth-border);
	border-radius: 6px;
}

.uth-exr-preview__meta {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.8rem;
}

/* ---------- Fields ---------- */
.uth-exr-field {
	display: grid;
	gap: 7px;
}

.uth-exr-field__label {
	color: var(--uth-muted);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.4;
}

.uth-exr-field__select,
.uth-exr-field__input {
	width: 100%;
	padding: 10px 12px;
	color: var(--uth-heading);
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: var(--uth-radius-small);
	font: inherit;
	font-size: 0.92rem;
}

.uth-exr-field__select:focus,
.uth-exr-field__input:focus {
	border-color: var(--uth-primary);
	outline: 2px solid rgba(14, 116, 144, 0.2);
	outline-offset: 0;
}

.uth-exr-field__range {
	width: 100%;
	accent-color: var(--uth-primary);
}

.uth-exr-field__hint {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.uth-exr-dims {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

/* ---------- Actions / note ---------- */
.uth-exr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.uth-exr-note {
	margin: 0;
	padding: 10px 14px;
	color: var(--uth-muted);
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: var(--uth-radius-medium);
	font-size: 0.84rem;
	line-height: 1.5;
}

.uth-exr-note.is-error {
	color: var(--uth-danger);
	background: rgba(225, 29, 72, 0.05);
	border-color: rgba(225, 29, 72, 0.25);
}

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

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

.uth-exr-result__heading {
	margin: 0;
	color: var(--uth-heading);
	font-size: 1.05rem;
	font-weight: 700;
}

.uth-exr-result__summary {
	margin: 0;
	color: var(--uth-text);
	font-size: 0.92rem;
	line-height: 1.6;
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
	.uth-exr-dropzone {
		padding: 26px 16px;
	}

	.uth-exr-dims {
		grid-template-columns: 1fr;
	}
}
