/* TRW Free Image Compressor & Converter. All selectors are scoped to .trw-ic. */
.trw-ic {
	--trw-ink: #17302a;
	--trw-muted: #50655e;
	--trw-green: #0b7a52;
	--trw-green-deep: #075a3c;
	--trw-gold: #f2b52c;
	--trw-wash: #edf5f0;
	--trw-line: #cddcd4;
	--trw-paper: #ffffff;
	--trw-danger: #a8231b;
	--trw-warn-bg: #fff5d9;
	--trw-radius-l: 18px;
	--trw-radius-s: 10px;
	--trw-font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
	font-family: var(--trw-font);
	color: var(--trw-ink);
	font-size: 16px;
	line-height: 1.5;
	max-width: 1180px;
	margin: 0 auto 2.5em;
	text-align: left;
}
.trw-ic *, .trw-ic *::before, .trw-ic *::after { box-sizing: border-box; }
.trw-ic [hidden] { display: none !important; }
.trw-ic p { margin: 0; }
.trw-ic img { max-width: 100%; height: auto; }
.trw-ic svg { flex: none; }
.trw-ic .trw-ic-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.trw-ic .trw-ic-head { margin-bottom: 18px; }
.trw-ic .trw-ic-title {
	font-family: var(--trw-font);
	font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--trw-ink);
	margin: 0 0 6px;
	padding: 0;
}
.trw-ic .trw-ic-lede { color: var(--trw-muted); font-size: 1.05rem; margin-bottom: 12px; }
.trw-ic .trw-ic-privacy {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--trw-wash); color: var(--trw-green-deep);
	border-radius: 999px; padding: 7px 14px 7px 12px;
	font-weight: 700; font-size: 0.92rem; line-height: 1.35;
}

/* Layout */
.trw-ic .trw-ic-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) {
	.trw-ic .trw-ic-grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
		grid-template-areas: "upload settings" "list settings";
		grid-template-rows: auto 1fr;
		align-items: start; gap: 0 24px;
	}
	.trw-ic .trw-ic-col--upload { grid-area: upload; }
	.trw-ic .trw-ic-col--list { grid-area: list; padding-top: 14px; }
	.trw-ic .trw-ic-col--settings { grid-area: settings; position: sticky; top: 24px; }
}

/* Drop zone */
.trw-ic .trw-ic-drop {
	position: relative;
	border: 2px dashed #9dbdae;
	border-radius: var(--trw-radius-l);
	background: var(--trw-wash);
	padding: 28px 18px;
	text-align: center;
	transition: background-color .15s ease, border-color .15s ease;
}
.trw-ic.trw-ic--has-items .trw-ic-drop { padding: 18px; }
.trw-ic .trw-ic-drop.is-over { background: #dcefe4; border-color: var(--trw-green); }
.trw-ic .trw-ic-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.trw-ic .trw-ic-drop-hint { margin-top: 10px; color: var(--trw-muted); font-size: 0.92rem; }
.trw-ic .trw-ic-desktop-only { display: none; }
@media (hover: hover) and (pointer: fine) { .trw-ic .trw-ic-desktop-only { display: inline; } }

/* Buttons (beat theme button styles) */
.trw-ic .trw-ic-btn,
.trw-ic a.trw-ic-btn,
.trw-ic button.trw-ic-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 10px 20px; margin: 0;
	border: 2px solid transparent; border-radius: 12px;
	font-family: var(--trw-font); font-size: 1rem; font-weight: 700; line-height: 1.2;
	letter-spacing: 0; text-transform: none; text-decoration: none; text-shadow: none;
	box-shadow: none; cursor: pointer; width: auto;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.trw-ic .trw-ic-btn--primary,
.trw-ic button.trw-ic-btn--primary { background: var(--trw-green); color: #fff; }
.trw-ic .trw-ic-btn--primary:hover,
.trw-ic button.trw-ic-btn--primary:hover { background: var(--trw-green-deep); color: #fff; }
.trw-ic .trw-ic-btn--big { min-height: 60px; padding: 14px 30px; font-size: 1.15rem; border-radius: 14px; }
.trw-ic .trw-ic-btn--wide,
.trw-ic button.trw-ic-btn--wide { width: 100%; min-height: 56px; font-size: 1.1rem; }
.trw-ic .trw-ic-btn--secondary,
.trw-ic button.trw-ic-btn--secondary { background: var(--trw-paper); color: var(--trw-green-deep); border-color: var(--trw-green); }
.trw-ic .trw-ic-btn--secondary:hover,
.trw-ic button.trw-ic-btn--secondary:hover { background: var(--trw-wash); color: var(--trw-green-deep); }
.trw-ic .trw-ic-btn--ghost,
.trw-ic button.trw-ic-btn--ghost { background: transparent; color: var(--trw-muted); border-color: var(--trw-line); }
.trw-ic .trw-ic-btn--ghost:hover,
.trw-ic button.trw-ic-btn--ghost:hover { background: var(--trw-wash); color: var(--trw-ink); }
.trw-ic .trw-ic-btn--small,
.trw-ic a.trw-ic-btn--small { min-height: 40px; padding: 7px 14px; font-size: 0.92rem; border-radius: 10px; background: var(--trw-green); color: #fff; }
.trw-ic a.trw-ic-btn--small:hover { background: var(--trw-green-deep); color: #fff; }
.trw-ic .trw-ic-btn:disabled,
.trw-ic button.trw-ic-btn:disabled { opacity: .45; cursor: not-allowed; }
.trw-ic .trw-ic-btn:focus-visible,
.trw-ic button:focus-visible,
.trw-ic a:focus-visible,
.trw-ic input:focus-visible,
.trw-ic select:focus-visible,
.trw-ic summary:focus-visible { outline: 3px solid var(--trw-gold); outline-offset: 2px; }

.trw-ic button.trw-ic-link {
	background: none; border: 0; padding: 4px 0; margin: 0; min-height: 0;
	color: var(--trw-green-deep); font: inherit; font-weight: 700; font-size: 0.92rem;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; text-transform: none;
}
.trw-ic button.trw-ic-link:hover { background: none; color: var(--trw-ink); }
.trw-ic button.trw-ic-link:disabled { opacity: .45; cursor: not-allowed; }

/* Messages */
.trw-ic .trw-ic-msg { font-size: 0.95rem; margin: 10px 2px 0; min-height: 0; }
.trw-ic .trw-ic-msg:empty { margin: 0; }
.trw-ic .trw-ic-msg--warn { background: var(--trw-warn-bg); padding: 10px 14px; border-radius: var(--trw-radius-s); }
.trw-ic .trw-ic-msg--info { color: var(--trw-green-deep); font-weight: 600; }
.trw-ic .trw-ic-msg--ok { color: var(--trw-green-deep); font-weight: 600; }

/* File list */
.trw-ic .trw-ic-listbar { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 6px; font-weight: 700; color: var(--trw-muted); font-size: 0.95rem; }
.trw-ic ul.trw-ic-list { list-style: none; margin: 0; padding: 0; }
.trw-ic .trw-ic-item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start;
	padding: 14px 0; margin: 0; border-bottom: 1px solid var(--trw-line);
}
.trw-ic .trw-ic-item:first-child { border-top: 1px solid var(--trw-line); }
@media (min-width: 520px) { .trw-ic .trw-ic-item { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; } }
.trw-ic .trw-ic-thumb {
	width: 100%; aspect-ratio: 1 / 1; border-radius: var(--trw-radius-s); overflow: hidden;
	background-color: #f3f6f4;
	background-image: linear-gradient(45deg, #e3eae6 25%, transparent 25%), linear-gradient(-45deg, #e3eae6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e3eae6 75%), linear-gradient(-45deg, transparent 75%, #e3eae6 75%);
	background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.trw-ic .trw-ic-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.trw-ic .trw-ic-body { min-width: 0; }
.trw-ic .trw-ic-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trw-ic .trw-ic-meta { color: var(--trw-muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.trw-ic .trw-ic-state { color: var(--trw-muted); font-size: 0.92rem; margin-top: 4px; }
.trw-ic .trw-ic-state--working { color: var(--trw-green-deep); font-weight: 700; }
.trw-ic .trw-ic-state--working::before {
	content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
	border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
	animation: trw-ic-spin .8s linear infinite;
}
@keyframes trw-ic-spin { to { transform: rotate(360deg); } }
.trw-ic .trw-ic-error { color: var(--trw-danger); font-size: 0.92rem; margin-top: 4px; }
.trw-ic .trw-ic-note { color: var(--trw-muted); font-size: 0.85rem; margin-top: 4px; }
.trw-ic .trw-ic-item-actions { display: flex; align-items: center; gap: 6px; }
.trw-ic button.trw-ic-remove {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; min-height: 40px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--trw-muted); cursor: pointer; box-shadow: none;
}
.trw-ic button.trw-ic-remove:hover { background: var(--trw-wash); color: var(--trw-danger); }
@media (max-width: 519px) {
	.trw-ic .trw-ic-item-actions { grid-column: 2 / 4; justify-content: space-between; }
	.trw-ic .trw-ic-item[data-status="done"] .trw-ic-item-actions { justify-content: space-between; }
	.trw-ic .trw-ic-item:not([data-status="done"]) { grid-template-columns: 64px minmax(0, 1fr) auto; }
	.trw-ic .trw-ic-item:not([data-status="done"]) .trw-ic-item-actions { grid-column: auto; }
}

/* The size meter: original size is the full track, the new file is the fill */
.trw-ic .trw-ic-meter {
	position: relative; height: 10px; margin: 10px 0 6px; border-radius: 999px;
	background: #e2ebe6; overflow: hidden;
}
.trw-ic .trw-ic-meter-fill {
	position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
	background: var(--trw-green);
	animation: trw-ic-grow .5s ease-out;
	transform-origin: left center;
}
.trw-ic .trw-ic-meter.is-larger { background: #f6d2cf; }
.trw-ic .trw-ic-meter.is-larger .trw-ic-meter-fill { background: var(--trw-danger); }
@keyframes trw-ic-grow { from { transform: scaleX(1.6); opacity: .4; } }
.trw-ic .trw-ic-result { font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.trw-ic .trw-ic-saved {
	display: inline-block; background: var(--trw-gold); color: #2b2200;
	font-weight: 800; padding: 1px 8px; border-radius: 6px;
}
.trw-ic .trw-ic-same { font-weight: 700; color: var(--trw-muted); }
.trw-ic .trw-ic-larger { font-weight: 800; color: var(--trw-danger); }
.trw-ic .trw-ic-keep { margin-top: 8px; background: var(--trw-warn-bg); border-radius: var(--trw-radius-s); padding: 8px 12px; font-size: 0.9rem; }

/* Settings panel */
.trw-ic .trw-ic-panel {
	background: var(--trw-paper); border: 1px solid var(--trw-line);
	border-radius: var(--trw-radius-l); padding: 6px 18px 18px;
}
.trw-ic fieldset.trw-ic-group { border: 0; border-bottom: 1px solid var(--trw-line); margin: 0; padding: 14px 0 18px; min-width: 0; }
.trw-ic fieldset.trw-ic-group legend {
	float: left; width: 100%; padding: 0; margin: 0 0 10px;
	font-weight: 800; font-size: 1.05rem; color: var(--trw-ink);
}
.trw-ic fieldset.trw-ic-group legend + * { clear: both; }
.trw-ic .trw-ic-help { color: var(--trw-muted); font-size: 0.86rem; margin-top: 8px; }
.trw-ic .trw-ic-help--warn { background: var(--trw-warn-bg); color: #5a4300; padding: 8px 12px; border-radius: var(--trw-radius-s); }

/* Segmented presets & chips */
.trw-ic .trw-ic-seg, .trw-ic .trw-ic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trw-ic .trw-ic-seg label, .trw-ic .trw-ic-chips label { position: relative; margin: 0; cursor: pointer; }
.trw-ic .trw-ic-seg label { flex: 1 1 0; min-width: 96px; }
.trw-ic .trw-ic-seg input, .trw-ic .trw-ic-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.trw-ic .trw-ic-seg span, .trw-ic .trw-ic-chips span {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 46px; padding: 8px 12px; border: 2px solid var(--trw-line); border-radius: 12px;
	font-weight: 700; font-size: 0.92rem; line-height: 1.2; color: var(--trw-ink); background: var(--trw-paper);
	transition: border-color .15s ease, background-color .15s ease;
}
.trw-ic .trw-ic-chips span { min-width: 64px; }
.trw-ic .trw-ic-seg input:checked + span, .trw-ic .trw-ic-chips input:checked + span {
	border-color: var(--trw-green); background: var(--trw-wash); color: var(--trw-green-deep);
}
.trw-ic .trw-ic-seg input:focus-visible + span, .trw-ic .trw-ic-chips input:focus-visible + span { outline: 3px solid var(--trw-gold); outline-offset: 2px; }
.trw-ic .trw-ic-chips label.is-disabled { cursor: not-allowed; }
.trw-ic .trw-ic-chips label.is-disabled span { opacity: .4; text-decoration: line-through; }

/* Quality slider */
.trw-ic .trw-ic-range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; margin-top: 16px; }
.trw-ic .trw-ic-range label { font-weight: 700; margin: 0; }
.trw-ic .trw-ic-range output { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--trw-green-deep); font-size: 1.05rem; }
.trw-ic input[type="range"] {
	grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none;
	-webkit-appearance: none; appearance: none; accent-color: var(--trw-green);
}
.trw-ic input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: #dbe7e0; }
.trw-ic input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
	background: var(--trw-green); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--trw-green-deep);
}
.trw-ic input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #dbe7e0; }
.trw-ic input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--trw-green); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--trw-green-deep); }

/* Inputs */
.trw-ic select.trw-ic-select,
.trw-ic input.trw-ic-input {
	width: 100%; min-height: 48px; margin: 0; padding: 8px 12px;
	border: 2px solid var(--trw-line); border-radius: 12px; background: var(--trw-paper);
	color: var(--trw-ink); font: inherit; font-size: 1rem; box-shadow: none;
}
.trw-ic select.trw-ic-select:focus, .trw-ic input.trw-ic-input:focus { border-color: var(--trw-green); }
.trw-ic input.trw-ic-input--short { width: 6.5em; display: inline-block; }
.trw-ic .trw-ic-sub { margin-top: 12px; }
.trw-ic .trw-ic-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trw-ic .trw-ic-dims label { display: block; margin: 0; font-weight: 700; font-size: 0.9rem; }
.trw-ic .trw-ic-dims label span { display: block; margin-bottom: 4px; }
.trw-ic .trw-ic-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 700; margin: 0; }
.trw-ic label.trw-ic-check { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-weight: 600; cursor: pointer; min-height: 32px; }
.trw-ic label.trw-ic-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--trw-green); flex: none; }
.trw-ic .trw-ic-bg { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-top: 14px; }
.trw-ic .trw-ic-bg label { font-weight: 700; margin: 0; }
.trw-ic .trw-ic-bg .trw-ic-help { grid-column: 1 / -1; margin-top: 0; }
.trw-ic input[type="color"] { width: 56px; height: 40px; padding: 2px; margin: 0; border: 2px solid var(--trw-line); border-radius: 10px; background: #fff; cursor: pointer; }

/* Actions */
.trw-ic .trw-ic-actions { padding-top: 18px; }
.trw-ic .trw-ic-actions-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.trw-ic .trw-ic-progress { margin-top: 12px; }
.trw-ic .trw-ic-progress progress {
	display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden;
	background: #e2ebe6; -webkit-appearance: none; appearance: none; accent-color: var(--trw-green);
}
.trw-ic .trw-ic-progress progress::-webkit-progress-bar { background: #e2ebe6; border-radius: 999px; }
.trw-ic .trw-ic-progress progress::-webkit-progress-value { background: var(--trw-green); border-radius: 999px; }
.trw-ic .trw-ic-progress progress::-moz-progress-bar { background: var(--trw-green); border-radius: 999px; }
.trw-ic .trw-ic-progress p { font-size: 0.92rem; color: var(--trw-muted); margin-top: 6px; }
.trw-ic .trw-ic-totals { margin-top: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trw-ic .trw-ic-fineprint { color: var(--trw-muted); font-size: 0.82rem; margin: 10px 4px 0; }

/* Page content */
.trw-ic .trw-ic-content { margin-top: 48px; max-width: 760px; }
.trw-ic .trw-ic-content section { margin-bottom: 36px; }
.trw-ic .trw-ic-content h2 {
	font-family: var(--trw-font); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem); line-height: 1.2;
	font-weight: 800; letter-spacing: -0.01em; color: var(--trw-ink); margin: 0 0 12px;
}
.trw-ic .trw-ic-content p { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.65; }
.trw-ic ol.trw-ic-steps { margin: 0; padding-left: 1.4em; }
.trw-ic ol.trw-ic-steps li { margin: 0 0 10px; padding-left: 4px; line-height: 1.6; }
.trw-ic .trw-ic-faq details { border-bottom: 1px solid var(--trw-line); }
.trw-ic .trw-ic-faq details:first-of-type { border-top: 1px solid var(--trw-line); }
.trw-ic .trw-ic-faq summary {
	cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
	font-weight: 700; font-size: 1.02rem; line-height: 1.4;
}
.trw-ic .trw-ic-faq summary::-webkit-details-marker { display: none; }
.trw-ic .trw-ic-faq summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2.5px solid var(--trw-green); border-bottom: 2.5px solid var(--trw-green); transform: rotate(45deg);
	transition: transform .15s ease;
}
.trw-ic .trw-ic-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.trw-ic .trw-ic-faq details p { padding: 0 0 14px; margin: 0; color: #2e4740; }
.trw-ic .trw-ic-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .trw-ic .trw-ic-more ul { grid-template-columns: 1fr 1fr; } }
.trw-ic .trw-ic-more li { margin: 0; padding: 16px 18px; border: 1px solid var(--trw-line); border-left: 5px solid var(--trw-gold); border-radius: var(--trw-radius-s); }
.trw-ic .trw-ic-more a { font-weight: 800; color: var(--trw-green-deep); text-decoration: underline; text-underline-offset: 3px; font-size: 1.05rem; }
.trw-ic .trw-ic-more a:hover { color: var(--trw-ink); }
.trw-ic .trw-ic-more p { margin: 6px 0 0; font-size: 0.95rem; color: var(--trw-muted); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
	.trw-ic *, .trw-ic *::before, .trw-ic *::after { animation: none !important; transition: none !important; }
}

/* ---------- 1.1.0: Compare button ---------- */
.trw-ic button.trw-ic-btn--compare {
	min-height: 40px; padding: 7px 14px; font-size: 0.92rem; border-radius: 10px;
	background: var(--trw-paper); color: var(--trw-green-deep); border-color: var(--trw-green);
}
.trw-ic button.trw-ic-btn--compare:hover { background: var(--trw-wash); color: var(--trw-green-deep); }

/* ---------- 1.1.0: Before/after comparison viewer (lives at the end of <body>) ---------- */
html.trw-icv-open, html.trw-icv-open body { overflow: hidden !important; }
.trw-icv {
	--icv-ink: #17302a; --icv-green: #0b7a52; --icv-green-deep: #075a3c; --icv-gold: #f2b52c;
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; flex-direction: column;
	background: #0f1d19; color: #fff;
	font-family: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
	font-size: 16px; line-height: 1.4; text-align: left;
	padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.trw-icv *, .trw-icv *::before, .trw-icv *::after { box-sizing: border-box; }
.trw-icv [hidden] { display: none !important; }
.trw-icv p { margin: 0; }
.trw-icv .trw-icv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; flex: none; }
.trw-icv .trw-icv-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.trw-icv button.trw-icv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; min-height: 44px; padding: 0 10px; margin: 0;
	border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff;
	font: inherit; font-weight: 700; font-size: 0.92rem; line-height: 1; text-transform: none; letter-spacing: 0;
	box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.trw-icv button.trw-icv-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.trw-icv button.trw-icv-btn:disabled { opacity: .35; cursor: default; background: rgba(255,255,255,.1); }
.trw-icv button:focus-visible, .trw-icv a:focus-visible, .trw-icv .trw-icv-handle:focus-visible { outline: 3px solid var(--icv-gold); outline-offset: 2px; }

.trw-icv .trw-icv-stage {
	position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
	touch-action: none; user-select: none; -webkit-user-select: none; cursor: ew-resize;
	background-color: #1c2b27;
	background-image: linear-gradient(45deg, #24352f 25%, transparent 25%), linear-gradient(-45deg, #24352f 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #24352f 75%), linear-gradient(-45deg, transparent 75%, #24352f 75%);
	background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.trw-icv.is-zoomed .trw-icv-stage { cursor: grab; }
.trw-icv.is-zoomed .trw-icv-stage:active { cursor: grabbing; }
.trw-icv .trw-icv-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.trw-icv .trw-icv-content { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.trw-icv .trw-icv-media { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; -webkit-user-drag: none; }
.trw-icv.is-pixelated .trw-icv-media { image-rendering: pixelated; }
.trw-icv .trw-icv-layer:first-child .trw-icv-media { visibility: hidden; }
.trw-icv.is-ready .trw-icv-layer:first-child .trw-icv-media { visibility: visible; }

.trw-icv .trw-icv-divider { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.trw-icv .trw-icv-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.trw-icv .trw-icv-handle {
	position: absolute; top: 50%; left: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: #fff; color: var(--icv-ink); box-shadow: 0 2px 10px rgba(0,0,0,.45);
	pointer-events: auto; cursor: ew-resize; touch-action: none;
}
.trw-icv .trw-icv-tag {
	position: absolute; top: 12px; display: flex; flex-direction: column; gap: 1px;
	padding: 6px 10px; border-radius: 8px; background: rgba(15,29,25,.82); color: #fff;
	font-size: 0.8rem; line-height: 1.3; pointer-events: none; max-width: 46%;
}
.trw-icv .trw-icv-tag strong { font-size: 0.9rem; }
.trw-icv .trw-icv-tag--a { left: 12px; }
.trw-icv .trw-icv-tag--b { right: 12px; text-align: right; align-items: flex-end; }
.trw-icv .trw-icv-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(15,29,25,.9); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-align: center; max-width: 90%; }

.trw-icv .trw-icv-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px 12px; }
.trw-icv .trw-icv-zoom { display: flex; align-items: center; gap: 6px; }
.trw-icv .trw-icv-level { min-width: 52px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.trw-icv .trw-icv-hint { color: rgba(255,255,255,.72); font-size: 0.85rem; flex: 1 1 220px; }
.trw-icv a.trw-icv-download {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
	border-radius: 10px; background: var(--icv-green); color: #fff; font-weight: 700; text-decoration: none; box-shadow: none;
}
.trw-icv a.trw-icv-download:hover { background: var(--icv-green-deep); color: #fff; }
@media (max-width: 519px) {
	.trw-icv .trw-icv-hint { order: 3; flex-basis: 100%; }
	.trw-icv .trw-icv-zoom { gap: 4px; }
	.trw-icv button.trw-icv-btn { min-width: 42px; padding: 0 8px; }
}
