.stlgen {
	max-width: 520px;
	margin: 1.5em auto;
	padding: 1.25em;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	color: #1d2327;
	font-family: inherit;
}

/* Our display rules below would otherwise override the HTML `hidden` attribute. */
.stlgen [hidden] {
	display: none !important;
}

.stlgen__form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.stlgen__drop {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	padding: 1.25em;
	border: 2px dashed #98a2b3;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
}

.stlgen__drop:hover,
.stlgen__drop:focus-within {
	border-color: #2271b1;
	background: #f6f9fc;
}

.stlgen__drop-title {
	font-weight: 600;
}

.stlgen__drop-hint {
	font-size: 0.9em;
	color: #50575e;
}

.stlgen__drop input[type="file"] {
	margin-top: 0.5em;
	max-width: 100%;
}

.stlgen__preview {
	max-width: 100%;
	max-height: 260px;
	margin: 0 auto;
	object-fit: contain;
	border-radius: 6px;
}

.stlgen__button,
.stlgen__download {
	display: inline-block;
	padding: 0.7em 1.2em;
	border: 0;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.stlgen__button:disabled {
	background: #98a2b3;
	cursor: not-allowed;
}

.stlgen__download {
	margin-top: 0.5em;
	background: #1a7f37;
}

.stlgen__status {
	min-height: 1.4em;
	margin: 1em 0 0;
}

.stlgen__status--error {
	color: #b42318;
}

.stlgen__note {
	margin: 0.75em 0 0;
	font-size: 0.9em;
	color: #50575e;
}

.stlgen-notice {
	padding: 0.75em 1em;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
}
