/* =========================================================
   Resize Photo Tool — Phase 7 UI polish
========================================================= */

.rpt-app,
.rpt-app * {
	box-sizing: border-box;
}

.rpt-app {
	--rpt-bg: #ffffff;
	--rpt-card: #ffffff;
	--rpt-text: #0f172a;
	--rpt-muted: #64748b;
	--rpt-border: #dbe4ef;
	--rpt-primary: #2563eb;
	--rpt-primary-hover: #1d4ed8;
	--rpt-primary-soft: #eff6ff;
	--rpt-success: #15803d;
	--rpt-success-soft: #f0fdf4;
	--rpt-danger: #b91c1c;
	--rpt-danger-soft: #fef2f2;
	--rpt-warning: #a16207;
	--rpt-warning-soft: #fffbeb;
	--rpt-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);

	width: 100%;
	max-width: 1180px;
	margin: 24px auto;
	padding: clamp(16px, 3vw, 30px);
	border: 1px solid var(--rpt-border);
	border-radius: 24px;
	background: var(--rpt-bg);
	color: var(--rpt-text);
	box-shadow: var(--rpt-shadow);
}

.rpt-app[data-theme="dark"] {
	--rpt-bg: #0b1220;
	--rpt-card: #111827;
	--rpt-text: #f8fafc;
	--rpt-muted: #94a3b8;
	--rpt-border: #334155;
	--rpt-primary-soft: #172554;
	--rpt-success-soft: #052e16;
	--rpt-danger-soft: #450a0a;
	--rpt-warning-soft: #422006;
	--rpt-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.rpt-app h2,
.rpt-app h3,
.rpt-app h4,
.rpt-app p {
	color: inherit;
}

.rpt-app :focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 3px;
}

.rpt-tool-panel {
	animation: rptFadeIn 0.25s ease;
}

@keyframes rptFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rpt-panel-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 24px;
	align-items: start;
}

.rpt-card {
	padding: clamp(16px, 2.5vw, 24px);
	border: 1px solid var(--rpt-border);
	border-radius: 18px;
	background: var(--rpt-card);
}

.rpt-card + .rpt-card {
	margin-top: 18px;
}

.rpt-field {
	margin-bottom: 18px;
}

.rpt-field:last-child {
	margin-bottom: 0;
}

.rpt-field label,
.rpt-field-label {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
}

.rpt-field-help {
	margin-top: 6px;
	color: var(--rpt-muted);
	font-size: 13px;
}

.rpt-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.rpt-app input[type="number"],
.rpt-app input[type="text"],
.rpt-app select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--rpt-border);
	border-radius: 12px;
	background: var(--rpt-bg);
	color: var(--rpt-text);
	font: inherit;
}

.rpt-drop-zone {
	position: relative;
	display: flex;
	min-height: 190px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 26px;
	border: 2px dashed var(--rpt-border);
	border-radius: 18px;
	background: var(--rpt-primary-soft);
	text-align: center;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease,
		background-color 0.2s ease;
}

.rpt-drop-zone:hover,
.rpt-drop-zone.is-dragging {
	border-color: var(--rpt-primary);
	transform: translateY(-1px);
}

.rpt-drop-zone input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.rpt-drop-zone__icon {
	display: grid;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	place-items: center;
	border-radius: 50%;
	background: var(--rpt-card);
	font-size: 26px;
}

.rpt-drop-zone strong {
	font-size: 17px;
}

.rpt-drop-zone small,
.rpt-file-name {
	color: var(--rpt-muted);
}

.rpt-file-name {
	display: block;
	margin-top: 8px;
	word-break: break-word;
}

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

.rpt-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--rpt-primary);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		background-color 0.18s ease,
		opacity 0.18s ease;
}

.rpt-button:hover {
	background: var(--rpt-primary-hover);
	color: #ffffff;
	transform: translateY(-1px);
}

.rpt-button:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.rpt-button--secondary {
	border-color: var(--rpt-border);
	background: var(--rpt-card);
	color: var(--rpt-text);
}

.rpt-button--secondary:hover {
	background: var(--rpt-primary-soft);
	color: var(--rpt-primary);
}

.rpt-button--success {
	background: var(--rpt-success);
}

.rpt-progress {
	margin-top: 18px;
}

.rpt-progress__track {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--rpt-border);
}

.rpt-progress__bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--rpt-primary), #60a5fa);
	transition: width 0.25s ease;
}

.rpt-progress__text {
	display: block;
	margin-top: 7px;
	color: var(--rpt-muted);
	font-size: 13px;
	font-weight: 600;
}

.rpt-notice {
	margin: 16px 0;
	padding: 13px 15px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-weight: 600;
}

.rpt-notice--success {
	border-color: rgba(21, 128, 61, 0.25);
	background: var(--rpt-success-soft);
	color: var(--rpt-success);
}

.rpt-notice--error {
	border-color: rgba(185, 28, 28, 0.25);
	background: var(--rpt-danger-soft);
	color: var(--rpt-danger);
}

.rpt-notice--warning {
	border-color: rgba(161, 98, 7, 0.25);
	background: var(--rpt-warning-soft);
	color: var(--rpt-warning);
}

.rpt-result-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: center;
	margin-top: 20px;
	padding: 18px;
	border: 1px solid rgba(21, 128, 61, 0.25);
	border-radius: 16px;
	background: var(--rpt-success-soft);
}

.rpt-result-card__icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--rpt-success);
	color: #ffffff;
	font-size: 21px;
	font-weight: 800;
}

.rpt-result-card__content h3 {
	margin: 0 0 10px;
}

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

.rpt-result-stats div {
	padding: 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.58);
}

.rpt-app[data-theme="dark"] .rpt-result-stats div {
	background: rgba(255, 255, 255, 0.05);
}

.rpt-result-stats span,
.rpt-result-stats strong {
	display: block;
}

.rpt-result-stats span {
	margin-bottom: 3px;
	color: var(--rpt-muted);
	font-size: 12px;
}

.rpt-result-card .rpt-button {
	grid-column: 1 / -1;
}

.rpt-sticky-card {
	position: sticky;
	top: 24px;
}

.rpt-option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.rpt-option-card {
	position: relative;
	padding: 14px;
	border: 1px solid var(--rpt-border);
	border-radius: 14px;
	background: var(--rpt-card);
	cursor: pointer;
}

.rpt-option-card:has(input:checked) {
	border-color: var(--rpt-primary);
	background: var(--rpt-primary-soft);
}

.rpt-option-card input {
	margin-right: 8px;
}

.rpt-empty-state {
	padding: 30px 18px;
	border: 1px dashed var(--rpt-border);
	border-radius: 16px;
	color: var(--rpt-muted);
	text-align: center;
}

.rpt-app.is-processing {
	user-select: none;
}

.rpt-app form.is-processing::after {
	position: fixed;
	z-index: 999999;
	inset: 0;
	background: rgba(15, 23, 42, 0.04);
	content: "";
	pointer-events: none;
}

@media (max-width: 900px) {
	.rpt-panel-grid {
		grid-template-columns: 1fr;
	}

	.rpt-sticky-card {
		position: static;
	}
}

@media (max-width: 640px) {
	.rpt-app {
		margin: 12px auto;
		padding: 14px;
		border-radius: 16px;
	}

	.rpt-app-header {
		align-items: flex-start;
	}

	.rpt-field-row,
	.rpt-option-grid,
	.rpt-result-stats {
		grid-template-columns: 1fr;
	}

	.rpt-actions {
		flex-direction: column;
	}

	.rpt-button {
		width: 100%;
	}

	.rpt-drop-zone {
		min-height: 160px;
		padding: 20px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rpt-app *,
	.rpt-app *::before,
	.rpt-app *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* ===== Version 1.0.2 final frontend override ===== */
.rpt-app {
	max-width: 1180px !important;
	margin: 24px auto !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #d7e1ee !important;
	border-radius: 16px !important;
	background: #f8fbff !important;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .10) !important;
	font-family: Arial, Helvetica, sans-serif !important;
}
.rpt-app-header {
	display:flex;align-items:center;justify-content:space-between;
	padding:24px 28px 18px;background:#fff;border-bottom:1px solid #e5edf6
}
.rpt-app-header h2 {margin:0 0 5px!important;font-size:30px!important;line-height:1.2!important;color:#172033!important}
.rpt-app-header h2 span {color:#0875d1}
.rpt-app-header p {margin:0!important;color:#596579!important}
.rpt-theme-toggle {width:42px;height:42px;border:1px solid #d8e2ed;border-radius:10px;background:#fff;font-size:20px;cursor:pointer}
.rpt-tool-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));max-width:720px;margin:0!important;padding:0 28px;background:#fff}
.rpt-tool-tab {min-height:54px!important;border:1px solid #dce5ef!important;border-bottom:3px solid transparent!important;background:#fff!important;color:#253149!important;font-size:16px!important;font-weight:700!important;cursor:pointer}
.rpt-tool-tab.is-active {background:linear-gradient(135deg,#0875d1,#1769c2)!important;color:#fff!important;border-color:#0875d1!important}
.rpt-tool-panel {display:none!important;padding:0 28px 28px!important}
.rpt-tool-panel.is-active {display:block!important}
.rpt-panel-grid {display:grid!important;grid-template-columns:minmax(0,1fr) 330px!important;gap:18px!important;align-items:start!important}
.rpt-main-column {min-width:0}
.rpt-card {margin-top:18px!important;padding:22px!important;border:1px solid #dce6f0!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
.rpt-card h3 {display:flex;align-items:center;gap:9px;margin:0 0 18px!important;font-size:18px!important;color:#1d2b44!important}
.rpt-step {display:inline-grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#0875d1;color:#fff;font-size:14px}
.rpt-drop-zone {min-height:170px!important;border:2px dashed #b8c9dd!important;border-radius:10px!important;background:#f7fbff!important}
.rpt-drop-zone__icon {background:#dceeff!important;color:#0875d1!important}
.rpt-file-name {font-weight:600}
.rpt-settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px}
.rpt-target-field {padding:14px;border:1px solid #b9d8f7;border-radius:8px;background:#f0f7ff}
.rpt-target-field small {display:block;margin-top:6px;color:#68758a}
.rpt-field {margin:0!important}
.rpt-field label {font-size:14px!important;color:#26344d!important}
.rpt-app input[type=number],.rpt-app input[type=text],.rpt-app select {min-height:44px!important;border:1px solid #cdd8e5!important;border-radius:6px!important;background:#fff!important;color:#172033!important}
.rpt-action-card {padding-top:18px!important}
.rpt-actions {display:flex!important;gap:12px!important;margin-top:0!important}
.rpt-button {min-height:46px!important;padding:10px 20px!important;border-radius:6px!important;font-weight:700!important}
.rpt-button--primary {background:#0875d1!important;color:#fff!important}
.rpt-button--secondary {background:#fff!important;color:#26344d!important;border:1px solid #ccd7e4!important}
.rpt-processing-note {margin:10px 0 0!important;color:#68758a!important;font-size:13px!important}
.rpt-sidebar {position:sticky;top:40px}
.rpt-tip-card {padding:0!important;overflow:hidden}
.rpt-tip-card h3 {margin:0!important;padding:16px 18px!important;background:linear-gradient(135deg,#10a34a,#078a3b)!important;color:#fff!important}
.rpt-tip-card ul {margin:0!important;padding:18px 20px 18px 40px!important}
.rpt-tip-card li {margin:0 0 15px!important;line-height:1.5!important}
.rpt-result-card {grid-template-columns:auto 1fr!important;margin-top:18px!important;padding:20px!important;border:1px solid #9fe0b3!important;border-radius:10px!important;background:#effcf3!important}
.rpt-result-card__content h3 {color:#087f35!important}
.rpt-result-card .rpt-button {grid-column:auto!important;align-self:center}
.rpt-result-stats {grid-template-columns:repeat(3,minmax(100px,1fr))!important}
.rpt-result-stats div {border:1px solid #d7e5dc;background:#fff!important;text-align:center}
.rpt-upload-preview {margin-top:14px;padding:12px;border:1px solid #dce6f0;border-radius:8px;background:#fff}
.rpt-upload-preview img {width:64px;height:64px;object-fit:cover;border-radius:6px;vertical-align:middle;margin-right:12px}
@media(max-width:900px){.rpt-panel-grid{grid-template-columns:1fr!important}.rpt-sidebar{position:static}.rpt-tool-tabs{max-width:none}}
@media(max-width:640px){.rpt-app-header{padding:18px}.rpt-app-header h2{font-size:23px!important}.rpt-tool-tabs{padding:0 14px}.rpt-tool-panel{padding:0 14px 18px!important}.rpt-settings-grid{grid-template-columns:1fr}.rpt-actions{flex-direction:column}.rpt-button{width:100%}.rpt-result-stats{grid-template-columns:1fr!important}}


/* ===== Version 1.0.3 server compatibility UI ===== */
.rpt-compatibility-alert {
	margin:18px 28px 0;
	padding:16px 18px;
	border:1px solid;
	border-radius:10px;
	background:#fff;
}
.rpt-compatibility-alert strong {
	display:block;
	margin-bottom:4px;
	font-size:16px;
}
.rpt-compatibility-alert p {
	margin:0!important;
	line-height:1.55!important;
}
.rpt-compatibility-alert--error {
	border-color:#f1a3a3;
	background:#fff3f3;
	color:#a11212;
}
.rpt-compatibility-alert--warning {
	border-color:#efcc76;
	background:#fff9e8;
	color:#755100;
}
.rpt-tool-tab.is-disabled,
.rpt-tool-tab:disabled {
	cursor:not-allowed!important;
	opacity:.58!important;
	background:#eef2f6!important;
	color:#657085!important;
	border-color:#d8e0e9!important;
}
.rpt-unavailable-badge {
	display:inline-block;
	margin-left:7px;
	padding:2px 6px;
	border-radius:999px;
	background:#dde4ec;
	font-size:10px;
	line-height:1.4;
	text-transform:uppercase;
	letter-spacing:.03em;
}
@media(max-width:640px){
	.rpt-compatibility-alert{margin:14px 14px 0}
	.rpt-unavailable-badge{display:none}
}

/* Phase B: batch image results and advanced options */
.rpt-checkbox-field { grid-column: 1 / -1; }
.rpt-checkbox-field label { display:flex; align-items:center; gap:9px; font-weight:600; }
.rpt-checkbox-field input { width:18px; height:18px; }
.rpt-batch-results { grid-column:1 / -1; width:100%; margin:4px 0 0; padding:0; list-style:none; }
.rpt-batch-results li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-top:1px solid var(--rpt-border); }
.rpt-batch-results li div { min-width:0; }
.rpt-batch-results strong,.rpt-batch-results span { display:block; overflow:hidden; text-overflow:ellipsis; }
.rpt-batch-results span { margin-top:3px; color:var(--rpt-muted); font-size:12px; }
.rpt-mini-download { flex:0 0 auto; padding:7px 10px; border:1px solid var(--rpt-border); border-radius:9px; text-decoration:none; font-size:13px; font-weight:700; color:var(--rpt-primary); }
.rpt-partial-warning { margin:10px 0 0; color:var(--rpt-warning); font-size:13px; font-weight:700; }
@media(max-width:640px){.rpt-batch-results li{align-items:flex-start;flex-direction:column}.rpt-mini-download{width:100%;text-align:center}}


/* v1.6.1 Output Format Selector */
.rpt-format-field{grid-column:1/-1}.rpt-format-selector{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rpt-format-option{position:relative;display:flex;align-items:center;gap:10px;min-height:76px;padding:12px;border:1px solid var(--rpt-border,#dbe4ef);border-radius:12px;background:var(--rpt-card,#fff);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.rpt-format-option:hover{border-color:#79afe8;transform:translateY(-1px)}.rpt-format-option input{position:absolute;opacity:0;pointer-events:none}.rpt-format-option.is-selected{border:2px solid #0875d1;background:#eff7ff;box-shadow:0 0 0 3px rgba(8,117,209,.1)}.rpt-format-option__icon{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:10px;background:#e5f2ff;color:#0875d1;font-weight:800}.rpt-format-option__copy{display:flex;min-width:0;flex-direction:column}.rpt-format-option__copy strong{font-size:15px;color:var(--rpt-text,#172033)}.rpt-format-option__copy small{margin-top:2px;color:var(--rpt-muted,#64748b);font-size:11px;line-height:1.3}.rpt-format-badge{position:absolute;top:-8px;right:7px;padding:3px 7px;border-radius:999px;background:#0a9b4b;color:#fff;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.rpt-format-option.is-disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4)}.rpt-format-option.is-disabled:hover{transform:none;border-color:var(--rpt-border,#dbe4ef)}.rpt-format-status{margin:9px 0 0!important;color:var(--rpt-muted,#64748b)!important;font-size:12px!important}.rpt-app[data-theme="dark"] .rpt-format-option.is-selected{background:#102a45}.rpt-app[data-theme="dark"] .rpt-format-option__icon{background:#173a5e}@media(max-width:760px){.rpt-format-selector{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.rpt-format-selector{grid-template-columns:1fr}.rpt-format-option{min-height:64px}}


/* v1.6.2 Exact KB Quick Presets */
.rpt-target-field{grid-column:1/-1}.rpt-kb-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}.rpt-kb-preset{min-height:38px;padding:8px 13px;border:1px solid var(--rpt-border,#dbe4ef);border-radius:999px;background:var(--rpt-card,#fff);color:var(--rpt-text,#172033);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease}.rpt-kb-preset:hover{border-color:#79afe8;transform:translateY(-1px)}.rpt-kb-preset.is-selected{border-color:#0875d1;background:#0875d1;color:#fff;box-shadow:0 0 0 3px rgba(8,117,209,.1)}.rpt-kb-custom{display:grid;grid-template-columns:minmax(160px,240px);gap:6px;margin-top:12px}.rpt-kb-custom[hidden]{display:none!important}.rpt-kb-help,.rpt-kb-status{margin:9px 0 0!important;font-size:12px!important;line-height:1.45!important}.rpt-kb-help{color:var(--rpt-muted,#64748b)!important}.rpt-kb-status{min-height:18px;color:var(--rpt-muted,#64748b)!important;font-weight:600}.rpt-kb-status.is-success{color:#087f35!important}.rpt-kb-status.is-warning{color:#9a6700!important}.rpt-kb-status.is-error{color:#b42318!important}.rpt-app[data-theme="dark"] .rpt-kb-preset{background:#111827}.rpt-app[data-theme="dark"] .rpt-kb-preset.is-selected{background:#1769c2}@media(max-width:640px){.rpt-kb-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.rpt-kb-preset{width:100%;padding:8px 6px}.rpt-kb-custom{grid-template-columns:1fr}}@media(max-width:380px){.rpt-kb-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* ===== v1.6.4 Smart Compression + Live File Information ===== */
.rpt-compression-profiles {
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:9px;
}
.rpt-profile-option {
	position:relative;
	display:flex;
	min-height:72px;
	align-items:center;
	padding:11px;
	border:1px solid var(--rpt-border,#dbe4ef);
	border-radius:12px;
	background:var(--rpt-card,#fff);
	cursor:pointer;
	transition:.18s ease;
}
.rpt-profile-option input {
	position:absolute;
	opacity:0;
	pointer-events:none;
}
.rpt-profile-option strong,
.rpt-profile-option small {
	display:block;
}
.rpt-profile-option small {
	margin-top:3px;
	color:var(--rpt-muted,#64748b);
	font-size:11px;
}
.rpt-profile-option.is-selected {
	border-color:#0875d1;
	background:#eef7ff;
	box-shadow:0 0 0 2px rgba(8,117,209,.10);
}
.rpt-profile-option:nth-child(1).is-selected { border-color:#159447; background:#effcf4; }
.rpt-profile-option:nth-child(3).is-selected { border-color:#d97706; background:#fff7ed; }
.rpt-profile-option:nth-child(4).is-selected { border-color:#dc2626; background:#fff1f2; }

.rpt-field input[type="range"][data-rpt-quality] {
	width:100%;
	min-height:auto!important;
	padding:0!important;
	accent-color:#0875d1;
}

.rpt-live-file-card {
	margin-top:16px;
	padding:17px;
	border:1px solid #b9d8f7;
	border-radius:14px;
	background:linear-gradient(145deg,#f7fbff,#eef7ff);
}
.rpt-live-file-card__head {
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:12px;
	margin-bottom:14px;
}
.rpt-live-eyebrow {
	display:block;
	margin-bottom:3px;
	color:#0875d1;
	font-size:11px;
	font-weight:800;
	letter-spacing:.08em;
	text-transform:uppercase;
}
.rpt-live-file-card h4 {
	margin:0!important;
	color:#172033!important;
	font-size:16px!important;
	word-break:break-word;
}
.rpt-live-status {
	flex:0 0 auto;
	padding:5px 9px;
	border-radius:999px;
	background:#dcfce7;
	color:#15803d;
	font-size:11px;
	font-weight:800;
}
.rpt-live-file-grid {
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:9px;
}
.rpt-live-file-grid div {
	padding:10px;
	border:1px solid rgba(8,117,209,.10);
	border-radius:10px;
	background:rgba(255,255,255,.82);
}
.rpt-live-file-grid span,
.rpt-live-file-grid strong {
	display:block;
}
.rpt-live-file-grid span {
	margin-bottom:4px;
	color:#64748b;
	font-size:11px;
}
.rpt-live-file-grid strong {
	color:#172033;
	font-size:13px;
	word-break:break-word;
}
.rpt-live-selection {
	display:flex;
	flex-wrap:wrap;
	gap:7px;
	margin-top:11px;
}
.rpt-live-selection span {
	padding:5px 8px;
	border:1px solid #c9dff5;
	border-radius:999px;
	background:#fff;
	color:#334155;
	font-size:11px;
	font-weight:700;
}
.rpt-live-warning {
	margin-top:11px;
	padding:9px 11px;
	border:1px solid #f5c66b;
	border-radius:9px;
	background:#fff9e8;
	color:#7a5200;
	font-size:12px;
	line-height:1.45;
}
.rpt-compression-grade {
	margin:12px 0 0!important;
	color:#15803d!important;
	font-weight:800;
}
.rpt-result-stats {
	grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

.rpt-app[data-theme="dark"] .rpt-live-file-card {
	border-color:#334155;
	background:linear-gradient(145deg,#101b2e,#111827);
}
.rpt-app[data-theme="dark"] .rpt-live-file-card h4,
.rpt-app[data-theme="dark"] .rpt-live-file-grid strong {
	color:#f8fafc!important;
}
.rpt-app[data-theme="dark"] .rpt-live-file-grid div,
.rpt-app[data-theme="dark"] .rpt-live-selection span {
	border-color:#334155;
	background:#172033;
	color:#dbeafe;
}
.rpt-app[data-theme="dark"] .rpt-profile-option.is-selected {
	background:#172554;
}

@media(max-width:760px) {
	.rpt-compression-profiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.rpt-live-file-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:430px) {
	.rpt-live-file-grid { grid-template-columns:1fr; }
	.rpt-live-file-card__head { flex-direction:column; }
}


/* ===== v1.6.5 Compression Result Dashboard ===== */
.rpt-result-dashboard { display:block!important; padding:0!important; overflow:hidden; border-width:1px!important; background:#fff!important; }
.rpt-result-dashboard__header { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:20px; background:linear-gradient(135deg,#effcf3,#f8fffa); border-bottom:1px solid #d7e5dc; }
.rpt-result-dashboard__header h3 { margin:2px 0 3px!important; }
.rpt-result-dashboard__header p { margin:0!important; color:#64748b!important; font-size:12px; word-break:break-word; }
.rpt-result-eyebrow { color:#15803d; font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.rpt-result-grade { padding:6px 10px; border-radius:999px; background:#dcfce7; color:#15803d; font-size:11px; font-weight:900; white-space:nowrap; }
.rpt-result-dashboard.is-warning { border-color:#f1c36d!important; }
.rpt-result-dashboard.is-warning .rpt-result-dashboard__header { background:linear-gradient(135deg,#fff8e7,#fffdf8); border-color:#f4d597; }
.rpt-result-dashboard.is-warning .rpt-result-card__icon { background:#d97706!important; }
.rpt-result-dashboard.is-warning .rpt-result-eyebrow,.rpt-result-dashboard.is-warning .rpt-result-dashboard__header h3 { color:#9a5b00!important; }
.rpt-result-dashboard.is-warning .rpt-result-grade { background:#ffedd5; color:#9a5b00; }
.rpt-result-dashboard.is-preserved .rpt-result-card__icon { background:#2563eb!important; }
.rpt-result-dashboard.is-preserved .rpt-result-grade { background:#dbeafe; color:#1d4ed8; }
.rpt-result-dashboard.is-neutral .rpt-result-card__icon { background:#64748b!important; }
.rpt-result-comparison { padding:20px 20px 8px; }
.rpt-result-bar-row { display:grid; grid-template-columns:68px 1fr 86px; gap:10px; align-items:center; margin-bottom:12px; color:#475569; font-size:12px; }
.rpt-result-bar-row strong { color:#172033; text-align:right; }
.rpt-result-bar-track { height:12px; overflow:hidden; border-radius:999px; background:#e8eef5; }
.rpt-result-bar-track i { display:block; min-width:4px; height:100%; border-radius:inherit; transition:width .45s ease; }
.rpt-result-bar-original { background:#94a3b8; }
.rpt-result-bar-output { background:linear-gradient(90deg,#0875d1,#21a366); }
.rpt-result-dashboard__stats { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:10px; padding:8px 20px 18px; }
.rpt-result-dashboard__stats div { min-width:0; padding:11px!important; border:1px solid #dfe8f1!important; border-radius:10px; background:#f8fbff!important; text-align:left!important; }
.rpt-result-dashboard__stats strong { overflow-wrap:anywhere; }
.rpt-result-advice { margin:0 20px 18px; padding:11px 13px; border:1px solid #f2c46d; border-radius:9px; background:#fff8e7; color:#7a5100; font-size:12px; line-height:1.5; }
.rpt-result-dashboard__actions { display:flex; flex-wrap:wrap; gap:10px; padding:0 20px 20px; }
.rpt-result-dashboard__actions .rpt-button { width:auto!important; }
.rpt-result-dashboard .rpt-batch-results { margin:0!important; padding:0 20px 20px!important; list-style:none; }
.rpt-result-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid #e2e8f0; border-radius:9px; background:#fff; }
.rpt-result-item + .rpt-result-item { margin-top:8px; }
.rpt-result-item span,.rpt-result-item small { display:block; margin-top:3px; color:#64748b; font-size:11px; }
.rpt-result-item--increased { border-color:#f2c46d; background:#fffaf0; }
.rpt-mini-download { flex:0 0 auto; }
.rpt-app[data-theme="dark"] .rpt-result-dashboard { background:#111827!important; }
.rpt-app[data-theme="dark"] .rpt-result-dashboard__header { background:#0f251a; border-color:#334155; }
.rpt-app[data-theme="dark"] .rpt-result-dashboard__header p,.rpt-app[data-theme="dark"] .rpt-result-bar-row { color:#94a3b8!important; }
.rpt-app[data-theme="dark"] .rpt-result-bar-row strong { color:#f8fafc; }
.rpt-app[data-theme="dark"] .rpt-result-dashboard__stats div,.rpt-app[data-theme="dark"] .rpt-result-item { border-color:#334155!important; background:#172033!important; }
@media(max-width:800px){.rpt-result-dashboard__stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.rpt-result-dashboard__header{grid-template-columns:auto 1fr}.rpt-result-grade{grid-column:1/-1;width:max-content}.rpt-result-dashboard__stats{grid-template-columns:1fr!important}.rpt-result-bar-row{grid-template-columns:58px 1fr}.rpt-result-bar-row strong{grid-column:2}.rpt-result-dashboard__actions{flex-direction:column}.rpt-result-dashboard__actions .rpt-button{width:100%!important}}


/* ===== v1.6.6 PDF Compression Engine ===== */
.rpt-pdf-profiles {
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:9px;
}
.rpt-pdf-profile-option {
	position:relative;
	display:flex;
	min-height:74px;
	align-items:center;
	padding:11px;
	border:1px solid var(--rpt-border,#dbe4ef);
	border-radius:12px;
	background:var(--rpt-card,#fff);
	cursor:pointer;
	transition:.18s ease;
}
.rpt-pdf-profile-option input {
	position:absolute;
	opacity:0;
	pointer-events:none;
}
.rpt-pdf-profile-option strong,
.rpt-pdf-profile-option small {
	display:block;
}
.rpt-pdf-profile-option small {
	margin-top:3px;
	color:var(--rpt-muted,#64748b);
	font-size:11px;
}
.rpt-pdf-profile-option.is-selected {
	border-color:#0875d1;
	background:#eef7ff;
	box-shadow:0 0 0 2px rgba(8,117,209,.10);
}
.rpt-pdf-profile-option:nth-child(1).is-selected {
	border-color:#159447;
	background:#effcf4;
}
.rpt-pdf-profile-option:nth-child(3).is-selected {
	border-color:#d97706;
	background:#fff7ed;
}
.rpt-pdf-profile-option:nth-child(4).is-selected {
	border-color:#dc2626;
	background:#fff1f2;
}
.rpt-pdf-profile-note {
	margin:9px 0 0!important;
	color:var(--rpt-muted,#64748b)!important;
	font-size:12px!important;
}
.rpt-pdf-compression-protection {
	display:flex;
	gap:8px;
	align-items:flex-start;
	margin-top:14px;
	padding:12px;
	border:1px solid #9fd8b4;
	border-radius:10px;
	background:#effcf4;
	color:#166534;
	font-size:12px;
}
.rpt-pdf-compression-protection strong,
.rpt-pdf-compression-protection span {
	display:block;
}
.rpt-app[data-theme="dark"] .rpt-pdf-profile-option.is-selected {
	background:#172554;
}
.rpt-app[data-theme="dark"] .rpt-pdf-compression-protection {
	border-color:#166534;
	background:#052e16;
	color:#bbf7d0;
}
@media(max-width:760px) {
	.rpt-pdf-profiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* ===== v1.7.0 Stable Compression Release ===== */
.rpt-progress--stable {
	margin-top:16px;
	padding:15px;
	border:1px solid #c9dff5;
	border-radius:13px;
	background:#f7fbff;
}
.rpt-progress__head,
.rpt-progress__meta {
	display:flex;
	justify-content:space-between;
	gap:12px;
}
.rpt-progress__head {
	margin-bottom:9px;
	color:#172033;
	font-size:13px;
}
.rpt-progress__meta {
	margin-top:7px;
	color:#64748b;
	font-size:11px;
}
.rpt-progress__track {
	height:11px!important;
	background:#dce7f2!important;
}
.rpt-progress__bar {
	position:relative;
	overflow:hidden;
	transition:width .28s ease;
}
.rpt-progress__bar::after {
	content:"";
	position:absolute;
	inset:0;
	transform:translateX(-100%);
	background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
	animation:rptProgressShimmer 1.35s infinite;
}
@keyframes rptProgressShimmer {
	to { transform:translateX(100%); }
}
.rpt-progress-stages {
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:6px;
	margin:12px 0 0!important;
	padding:0!important;
	list-style:none!important;
}
.rpt-progress-stages li {
	position:relative;
	padding-top:15px;
	color:#94a3b8;
	font-size:10px;
	font-weight:700;
	text-align:center;
}
.rpt-progress-stages li::before {
	content:"";
	position:absolute;
	top:0;
	left:50%;
	width:9px;
	height:9px;
	transform:translateX(-50%);
	border:2px solid #cbd5e1;
	border-radius:50%;
	background:#fff;
}
.rpt-progress-stages li.is-active { color:#0875d1; }
.rpt-progress-stages li.is-active::before {
	border-color:#0875d1;
	background:#0875d1;
	box-shadow:0 0 0 4px rgba(8,117,209,.12);
}
.rpt-progress-stages li.is-complete { color:#15803d; }
.rpt-progress-stages li.is-complete::before {
	border-color:#16a34a;
	background:#16a34a;
}
.rpt-cancel-processing {
	display:block;
	margin:12px auto 0;
	padding:7px 12px;
	border:1px solid #efb0b0;
	border-radius:8px;
	background:#fff;
	color:#b42318;
	font-size:12px;
	font-weight:700;
	cursor:pointer;
}
.rpt-before-after {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:12px;
	margin:16px 0;
}
.rpt-before-after div {
	position:relative;
	overflow:hidden;
	min-height:170px;
	border:1px solid #dbe4ef;
	border-radius:12px;
	background:#f3f6fa;
}
.rpt-before-after span {
	position:absolute;
	z-index:2;
	top:8px;
	left:8px;
	padding:4px 8px;
	border-radius:999px;
	background:rgba(15,23,42,.78);
	color:#fff;
	font-size:10px;
	font-weight:800;
}
.rpt-before-after img {
	display:block;
	width:100%;
	height:220px;
	object-fit:contain;
}
.rpt-batch-summary {
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:9px;
	margin:15px 0;
}
.rpt-batch-summary div {
	padding:12px;
	border:1px solid #dce6f0;
	border-radius:10px;
	background:#f8fbff;
	text-align:center;
}
.rpt-batch-summary strong,
.rpt-batch-summary span {
	display:block;
}
.rpt-batch-summary strong {
	color:#0875d1;
	font-size:20px;
}
.rpt-batch-summary span {
	margin-top:3px;
	color:#64748b;
	font-size:10px;
}
.rpt-history-card {
	margin-top:18px!important;
}
.rpt-history-head {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}
.rpt-history-head h3 { margin-bottom:0!important; }
.rpt-history-clear {
	padding:5px 8px;
	border:1px solid #d6e0eb;
	border-radius:7px;
	background:#fff;
	color:#526078;
	font-size:11px;
	cursor:pointer;
}
.rpt-history-list {
	display:grid;
	gap:7px;
	margin:12px 0!important;
	padding:0!important;
	list-style:none!important;
}
.rpt-history-list li {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:9px;
	padding:9px;
	border:1px solid #e0e8f1;
	border-radius:9px;
	background:#f9fbfd;
}
.rpt-history-list strong,
.rpt-history-list span {
	display:block;
	max-width:190px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.rpt-history-list strong { font-size:11px; }
.rpt-history-list span { margin-top:2px;color:#64748b;font-size:9px; }
.rpt-history-list a {
	flex:0 0 auto;
	color:#0875d1;
	font-size:10px;
	font-weight:800;
}
.rpt-history-empty {
	color:#64748b!important;
	font-size:12px!important;
}
.rpt-app[data-theme="dark"] .rpt-progress--stable,
.rpt-app[data-theme="dark"] .rpt-batch-summary div,
.rpt-app[data-theme="dark"] .rpt-history-list li {
	border-color:#334155;
	background:#111827;
}
.rpt-app[data-theme="dark"] .rpt-progress__head { color:#f8fafc; }
.rpt-app[data-theme="dark"] .rpt-before-after div { border-color:#334155;background:#0f172a; }
@media(max-width:650px) {
	.rpt-before-after { grid-template-columns:1fr; }
	.rpt-before-after img { height:190px; }
	.rpt-batch-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) {
	.rpt-progress__bar::after { animation:none; }
}


/* ===== v1.7.1 PDF Runtime Compatibility Fix ===== */
.rpt-pdf-runtime-status {
	display:grid;
	gap:5px;
	margin:12px 0;
	padding:12px;
	border:1px solid;
	border-radius:10px;
	font-size:12px;
}
.rpt-pdf-runtime-status.is-ready {
	border-color:#9fd8b4;
	background:#effcf4;
	color:#166534;
}
.rpt-pdf-runtime-status.is-blocked {
	border-color:#f1aaaa;
	background:#fff3f3;
	color:#991b1b;
}
.rpt-pdf-runtime-status span,
.rpt-pdf-runtime-status small { display:block;line-height:1.45; }
.rpt-pdf-diagnostic-button { width:100%;margin-bottom:10px; }
.rpt-pdf-diagnostic-result {
	margin:10px 0;
	padding:12px;
	border:1px solid #dbe4ef;
	border-radius:10px;
	background:#f8fbff;
	font-size:12px;
}
.rpt-pdf-diagnostic-result ul {
	display:grid;
	gap:5px;
	margin:8px 0 0!important;
	padding:0!important;
	list-style:none!important;
}
.rpt-pdf-diagnostic-result li.is-pass { color:#15803d; }
.rpt-pdf-diagnostic-result li.is-fail { color:#b42318; }
.rpt-app[data-theme="dark"] .rpt-pdf-diagnostic-result {
	border-color:#334155;
	background:#111827;
}
.rpt-health-card small {
	display:block;
	margin-top:5px;
	color:#64748b;
	line-height:1.4;
}

/* RPT_ASSET_BUILD_172 */
