.compress-image-page {
	padding: 0;
}

.compress-image {
	margin: 0 auto 40px;
	max-width: 960px;
	color: #17212f;
	text-align: left;
}

.ci-header {
	padding: 30px 0 18px;
	text-align: center;
}

.ci-header h1 {
	margin: 0 0 12px;
	color: #000;
}

.ci-intro {
	margin: 0 auto 12px;
	max-width: 800px;
	color: #30425b;
	font-size: 1.08rem;
	line-height: 1.55;
}


.ci-section {
	margin: 0 0 18px;
	padding: 22px;
	border: 1px solid #d6e1ea;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 14px rgba(23, 33, 47, .07);
}

.ci-section h2 {
	margin: 0 0 10px;
	color: #17212f;
	font-size: 1.2rem;
	line-height: 1.3;
}

.ci-section-heading {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
}

.ci-muted,
.ci-dropzone-subtitle {
	margin: 0;
	color: #6a7a8d;
	font-size: .95rem;
	line-height: 1.45;
}

.ci-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ci-dropzone {
	display: flex;
	min-height: 170px;
	padding: 24px;
	border: 2px dashed #9cb2c4;
	border-radius: 8px;
	background: #f7fafc;
	color: #30425b;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ci-dropzone:hover,
.ci-dropzone:focus-within,
.ci-dropzone.is-dragging {
	border-color: #0090c5;
	background: #eef8fb;
	box-shadow: 0 0 0 3px rgba(0, 144, 197, .12);
}

.ci-dropzone-title {
	display: block;
	margin-bottom: 8px;
	font-size: 1.25rem;
	font-weight: 700;
}

.ci-upload-meta-row {
	display: flex;
	margin-top: 12px;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.ci-file-meta {
	min-width: 0;
	color: #30425b;
	font-size: .95rem;
	line-height: 1.4;
	flex: 1 1 auto;
}

.ci-button {
	display: inline-flex;
	padding: 9px 14px;
	border: 1px solid #b9cad8;
	border-radius: 6px;
	background: #fff;
	color: #17212f;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.ci-button:hover,
.ci-button:focus {
	border-color: #0090c5;
	box-shadow: 0 0 0 3px rgba(0, 144, 197, .12);
	text-decoration: none;
}

.ci-button:disabled,
.ci-control input:disabled {
	cursor: not-allowed;
	opacity: .58;
}

.ci-button-primary {
	border-color: #0090c5;
	background: #0090c5;
	color: #fff;
}

.ci-button-primary:hover,
.ci-button-primary:focus {
	background: #007fab;
	color: #fff;
}

.ci-button-secondary {
	background: #f7fafc;
}



.ci-result-frame {
	display: block;
	max-width: 760px;
	min-height: 0;
	margin: 0 auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	text-align: center;
}

.ci-result-frame img {
	max-width: 100%;
	max-height: 520px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.ci-image-empty {
	padding: 18px;
	color: #6a7a8d;
	font-size: .95rem;
	line-height: 1.45;
	text-align: center;
}

.ci-control-grid {
	display: grid;
	margin-top: 16px;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ci-control {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #f7fafc;
}

.ci-control > span,
.ci-resize-fields span,
.ci-stats-grid span {
	color: #6a7a8d;
	font-size: .86rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.ci-quality-control {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.ci-quality-control > span {
	grid-column: 1 / -1;
}

.ci-quality-control input {
	width: 100%;
}

.ci-quality-control strong,
.ci-stats-grid strong {
	color: #17212f;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.ci-check {
	display: flex;
	gap: 8px;
	align-items: center;
	color: #30425b;
	font-weight: 800;
	line-height: 1.3;
}

.ci-resize-fields {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ci-resize-fields label {
	display: grid;
	gap: 6px;
}

.ci-resize-fields input {
	width: 100%;
	min-height: 36px;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid #b9cad8;
	border-radius: 5px;
	background: #fff;
	color: #17212f;
	font: inherit;
}

.ci-estimated-size {
	margin-top: 16px;
	color: #000;
	font-weight: 800;
	line-height: 1.3;
}

.ci-actions {
	display: flex;
	margin-top: 10px;
	gap: 10px;
	flex-wrap: wrap;
}

.ci-stats-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ci-stats-grid div {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #f7fafc;
}

.ci-result-preview {
	margin-top: 18px;
}

.ci-result-preview h3 {
	margin: 0 0 12px;
	text-align: center;
	color: #17212f;
	font-size: 1rem;
	line-height: 1.3;
}

.ci-export-ad {
	margin: 0 0 18px;
}

.ci-ad-login-message {
	margin: 8px 0 0;
	color: #6a7a8d;
	font-size: .92rem;
}



.ci-export-actions {
	display: flex;
	margin-top: 16px;
	gap: 10px;
	flex-wrap: wrap;
}

.ci-status {
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #f7fafc;
	color: #30425b;
	font-size: .95rem;
	line-height: 1.45;
}

.ci-status.is-error {
	border-color: #e2b3b3;
	background: #fff4f4;
	color: #8a2d2d;
}

.ci-status.is-success {
	border-color: #b8d9c7;
	background: #f0f8f5;
	color: #235144;
}

.ci-dropzone[hidden],
.ci-upload-meta-row[hidden],
.ci-file-meta[hidden],
.ci-status[hidden],
.ci-image-empty[hidden],
.ci-result-frame img[hidden],
.ci-download[hidden],
.ci-export-download[hidden] {
	display: none;
}

@media (max-width: 860px) {
	.ci-control-grid,
	.ci-stats-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.compress-image {
		margin-bottom: 28px;
	}

	.ci-section {
		padding: 18px;
	}

	.ci-section-heading {
		display: block;
	}

	.ci-upload-meta-row,
	.ci-resize-fields,
	.ci-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ci-actions .ci-button {
		width: 100%;
		box-sizing: border-box;
	}

}
