.jpg-png-page {
	letter-spacing: 0;
}

.jpg-png-heading {
	padding: 0 0 2rem;
	border-bottom: 1px solid #dbe4ee;
	margin-bottom: 1.5rem;
}

.jpg-png-eyebrow {
	margin: 0 0 0.65rem;
	color: #0f8576;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0;
}

.jpg-png-heading h1 {
	margin: 0 0 1rem;
	color: #111827;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.18;
	letter-spacing: 0;
}

.jpg-png-heading > p:last-child,
.jpg-png-guide > header > p:last-child {
	margin: 0;
	color: #61708a;
	font-size: 1.05rem;
	line-height: 1.8;
}

.jpg-png-tool {
	padding: 1.5rem;
	border: 1px solid #d6e1ec;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(31, 48, 68, 0.06);
}

.jpg-png-tool-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.jpg-png-tool-head > div {
	display: grid;
	grid-template-columns: 2rem 1fr;
	column-gap: 0.75rem;
	align-items: center;
}

.jpg-png-step {
	display: grid;
	grid-row: 1 / span 2;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #e2f4f0;
	color: #087c6d;
	font-weight: 800;
}

.jpg-png-tool h2,
.jpg-png-guide h2,
.jpg-png-tool h3,
.jpg-png-guide h3 {
	color: #172033;
	letter-spacing: 0;
}

.jpg-png-tool-head h2 {
	margin: 0;
	font-size: 1.35rem;
}

.jpg-png-tool-head p {
	grid-column: 2;
	margin: 0.25rem 0 0;
	color: #748198;
	font-size: 0.9rem;
}

#jpgPngInput {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
}

.jpg-png-file-button,
.jpg-png-actions button,
.jpg-png-item button,
.jpg-png-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 1.15rem;
	border: 1px solid #ccd9e7;
	border-radius: 7px;
	background: #fff;
	color: #25344d;
	font: inherit;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	cursor: pointer;
	text-decoration: none;
}

.jpg-png-file-button,
.jpg-png-actions .jpg-png-primary {
	border-color: #0f8979;
	background: #0f8979;
	color: #fff;
}

.jpg-png-dropzone {
	display: flex;
	min-height: 12rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 1.5rem;
	border: 1px dashed #9db8cc;
	border-radius: 8px;
	background: #f6f9fc;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.jpg-png-dropzone:hover,
.jpg-png-dropzone:focus,
.jpg-png-dropzone.is-dragging {
	border-color: #0f8979;
	background: #edf8f5;
	outline: none;
}

.jpg-png-drop-icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 7px;
	background: #dff3ee;
	color: #087c6d;
	font-size: 0.82rem;
	font-weight: 900;
}

.jpg-png-dropzone strong {
	color: #172033;
	font-size: 1.05rem;
}

.jpg-png-dropzone span,
.jpg-png-empty p,
.jpg-png-status {
	color: #748198;
}

.jpg-png-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}

.jpg-png-summary[hidden],
.jpg-png-progress[hidden] {
	display: none !important;
}

.jpg-png-summary > div {
	min-width: 0;
	padding: 0.9rem 1rem;
	border: 1px solid #dce5ee;
	border-radius: 7px;
	background: #f8fafc;
}

.jpg-png-summary span,
.jpg-png-summary strong {
	display: block;
}

.jpg-png-summary span {
	margin-bottom: 0.25rem;
	color: #76849a;
	font-size: 0.8rem;
}

.jpg-png-summary strong {
	overflow: hidden;
	color: #172033;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jpg-png-list {
	display: grid;
	gap: 0.75rem;
	margin-top: 1rem;
}

.jpg-png-empty {
	padding: 1.5rem;
	border: 1px solid #e1e8ef;
	border-radius: 7px;
	text-align: center;
}

.jpg-png-empty p {
	margin: 0.35rem 0 0;
}

.jpg-png-item {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem;
	border: 1px solid #dce5ee;
	border-radius: 7px;
	background: #fff;
}

.jpg-png-thumb {
	display: block;
	width: 5rem;
	height: 4rem;
	border-radius: 6px;
	background: #edf2f7;
	object-fit: cover;
}

.jpg-png-item-info {
	min-width: 0;
}

.jpg-png-item-name {
	display: block;
	overflow: hidden;
	margin-bottom: 0.35rem;
	color: #172033;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jpg-png-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.8rem;
	color: #75839a;
	font-size: 0.82rem;
}

.jpg-png-item-status.is-done {
	color: #087c6d;
	font-weight: 800;
}

.jpg-png-item-status.is-error {
	color: #bd3e36;
	font-weight: 800;
}

.jpg-png-item-actions {
	display: flex;
	gap: 0.45rem;
}

.jpg-png-item button,
.jpg-png-download {
	min-height: 2.5rem;
	padding: 0 0.8rem;
	font-size: 0.85rem;
}

.jpg-png-download[aria-disabled="true"] {
	pointer-events: none;
	opacity: 0.45;
}

.jpg-png-progress {
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	border-radius: 7px;
	background: #eef6f4;
}

.jpg-png-progress > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
	color: #365164;
	font-size: 0.85rem;
}

.jpg-png-progress progress {
	display: block;
	width: 100%;
	height: 0.65rem;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
}

.jpg-png-progress progress::-webkit-progress-bar { background: #d8e5e2; }
.jpg-png-progress progress::-webkit-progress-value { background: #0f8979; }
.jpg-png-progress progress::-moz-progress-bar { background: #0f8979; }

.jpg-png-actions {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
	gap: 0.65rem;
	margin-top: 1rem;
}

.jpg-png-actions button:disabled,
.jpg-png-item button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.jpg-png-status {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
}

.jpg-png-guide {
	margin-top: 2.5rem;
}

.jpg-png-guide > header {
	margin-bottom: 1.25rem;
}

.jpg-png-guide > header h2 {
	margin: 0 0 0.55rem;
	font-size: 1.8rem;
}

.jpg-png-howto,
.jpg-png-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
}

.jpg-png-howto section,
.jpg-png-info-grid section {
	padding: 1.1rem;
	border: 1px solid #dce5ee;
	border-radius: 7px;
	background: #fff;
}

.jpg-png-howto span {
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	margin-bottom: 0.7rem;
	border-radius: 50%;
	background: #e2f4f0;
	color: #087c6d;
	font-size: 0.8rem;
	font-weight: 900;
}

.jpg-png-howto h3,
.jpg-png-info-grid h3 {
	margin: 0 0 0.45rem;
	font-size: 1rem;
}

.jpg-png-howto p,
.jpg-png-info-grid p,
.jpg-png-faq p {
	margin: 0;
	color: #65748a;
	font-size: 0.9rem;
	line-height: 1.75;
}

.jpg-png-compare {
	overflow-x: auto;
	margin: 1rem 0;
	border: 1px solid #dce5ee;
	border-radius: 7px;
}

.jpg-png-compare table {
	width: 100%;
	min-width: 34rem;
	margin: 0;
}

.jpg-png-compare th,
.jpg-png-compare td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid #e3e9ef;
	text-align: left;
}

.jpg-png-compare thead th {
	background: #f1f6fa;
	color: #26354c;
}

.jpg-png-compare tbody tr:last-child th,
.jpg-png-compare tbody tr:last-child td {
	border-bottom: 0;
}

.jpg-png-info-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jpg-png-faq {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #dce5ee;
}

.jpg-png-faq h2 {
	margin: 0 0 1rem;
	font-size: 1.35rem;
}

.jpg-png-faq details {
	border-bottom: 1px solid #dce5ee;
}

.jpg-png-faq summary {
	padding: 1rem 0;
	color: #25344d;
	font-weight: 800;
	cursor: pointer;
}

.jpg-png-faq details p {
	padding: 0 0 1rem;
}

@media screen and (max-width: 736px) {
	.jpg-png-heading h1 { font-size: 2.15rem; }
	.jpg-png-tool { padding: 1rem; }
	.jpg-png-tool-head { align-items: stretch; flex-direction: column; }
	.jpg-png-file-button { width: 100%; }
	.jpg-png-dropzone { min-height: 10rem; }
	.jpg-png-summary { grid-template-columns: 1fr; }
	.jpg-png-item { grid-template-columns: 4.25rem minmax(0, 1fr); }
	.jpg-png-thumb { width: 4.25rem; height: 3.75rem; }
	.jpg-png-item-actions { grid-column: 1 / -1; }
	.jpg-png-item-actions > * { flex: 1; }
	.jpg-png-actions { grid-template-columns: 1fr 1fr; }
	.jpg-png-actions .jpg-png-primary { grid-column: 1 / -1; }
	.jpg-png-howto,
	.jpg-png-info-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 420px) {
	.jpg-png-actions { grid-template-columns: 1fr; }
	.jpg-png-actions .jpg-png-primary { grid-column: auto; }
	.jpg-png-item-actions { flex-direction: column; }
}
