/* Pencil Sketch Converter — frontend styles. Pure black/white/grey, sharp corners. */
.psc-wrap {
	font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #0A0A0A;
	max-width: 880px;
	margin: 32px auto;
}
.psc-wrap * { box-sizing: border-box; }

.psc-file-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.psc-dropzone {
	border: 2px dashed #E5E5E5;
	background: #FAFAFA;
	min-height: 320px;
	padding: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
	position: relative;
	outline: none;
}
.psc-dropzone:hover, .psc-dropzone:focus, .psc-dropzone.is-dragover {
	border-color: #0A0A0A;
	background: #F0F0F0;
}
.psc-drop-inner {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.psc-drop-icon {
	width: 56px; height: 56px;
	background: #0A0A0A;
	color: #FFF;
	display: flex; align-items: center; justify-content: center;
	font-size: 28px; font-weight: 700;
}
.psc-drop-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0;
}
.psc-drop-sub {
	font-size: 13px;
	color: #666;
	margin: 0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.psc-preview {
	max-height: 280px;
	max-width: 100%;
	object-fit: contain;
	border: 1px solid #E5E5E5;
}

.psc-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	flex-wrap: wrap;
}
.psc-btn {
	height: 48px;
	padding: 0 24px;
	border: none;
	border-radius: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.psc-btn-primary {
	background: #0A0A0A;
	color: #FFF;
}
.psc-btn-primary:hover { background: #2A2A2A; color: #FFF; }
.psc-btn-primary:disabled { opacity: .3; cursor: not-allowed; }
.psc-btn-ghost {
	background: transparent;
	color: #0A0A0A;
	border: 1px solid #0A0A0A;
}
.psc-btn-ghost:hover { background: #0A0A0A; color: #FFF; }

.psc-status {
	margin-top: 24px;
}
.psc-stage {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #0A0A0A;
	margin-bottom: 8px;
}
.psc-stage::after {
	content: "…";
	display: inline-block;
	margin-left: 4px;
	animation: psc-blink 1.2s steps(3) infinite;
}
@keyframes psc-blink {
	0%, 33% { opacity: .3; }
	34%, 66% { opacity: .7; }
	67%, 100% { opacity: 1; }
}
.psc-bar {
	width: 100%;
	height: 6px;
	background: #E5E5E5;
	overflow: hidden;
}
.psc-bar-fill {
	height: 100%;
	width: 0%;
	background: #0A0A0A;
	transition: width .5s ease-out;
}

.psc-error {
	margin-top: 16px;
	padding: 12px 16px;
	background: #FFF5F4;
	border: 1px solid #FF3B30;
	color: #FF3B30;
	font-size: 13px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}

.psc-result {
	margin-top: 32px;
	border: 1px solid #E5E5E5;
	background: #FFF;
	padding: 24px;
}
.psc-result img {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	background: #FFF;
}
.psc-result-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
	justify-content: center;
}
