* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: Arial, "Noto Sans KR", sans-serif;
	background: #f5f7fb;
	color: #222;
}
.container { width: min(1000px, 92%); margin: 40px auto; }
h1 { text-align: center; margin-bottom: 10px; }
.sub { text-align: center; color: #666; line-height: 1.7; margin-bottom: 28px; }
.card {
	background: white;
	padding: 24px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.server-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #999; }
.image-area { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.image-box {
	min-height: 350px;
	border: 2px dashed #ccc;
	border-radius: 12px;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 15px;
}
.image-box h3 { margin-top: 0; }
.image-box img {
	max-width: 100%;
	max-height: 300px;
	border-radius: 8px;
	object-fit: contain;
}
#previewImage, #outputImage { display: none; }
.controls { margin-top: 22px; text-align: center; }
input[type="file"] { margin-bottom: 15px; }
button {
	display: block;
	width: 100%;
	max-width: 400px;
	margin: 10px auto;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	background: #2563eb;
	color: white;
	font-size: 17px;
	font-weight: bold;
	cursor: pointer;
}
button:hover { background: #1d4ed8; }
button:disabled { background: #aaa; cursor: not-allowed; }
#status {
	margin-top: 20px;
	padding: 14px;
	border-radius: 10px;
	background: #eef2ff;
	text-align: center;
	line-height: 1.6;
	white-space: pre-line;
}
.help {
	margin-top: 25px;
	padding: 18px;
	background: #f8fafc;
	border-radius: 10px;
	line-height: 1.7;
}
@media (max-width: 700px) {
	.image-area { grid-template-columns: 1fr; }
}