/* Image compressor (/tools/image-compressor/ and /ko/tools/image-compressor/).
   Builds on /css/clean-home.css and /tools/shared/audio-task.css; only what those don't cover. */

/* Korean page: Noto Sans KR for Hangul, and no breaks inside words. */
body.ic-ko {
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ic-ko .at-item-name { word-break: normal; overflow-wrap: anywhere; }

.ic-nav-links { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; }
.ic-nav-links a { text-decoration: none; }
.ic-nav-links a:hover { color: var(--et-purple-dark); text-decoration: underline; }
.at-hero h1 .ic-h1-sub { font-size: .55em; font-weight: 700; color: var(--et-mute); letter-spacing: -0.01em; white-space: nowrap; }

/* Settings ------------------------------------------------------------------------- */
.at-tool fieldset.ic-field { margin: 0; padding: 0; }
.ic-field + .ic-field { margin-top: 20px; }
.ic-box { margin-top: 12px; }
.ic-box > .at-note:first-child { margin-top: 0; }
.ic-quality-label { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; }
.ic-quality-label output { color: var(--et-purple-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.ic-target { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; font-weight: 700; }
.at-tool .ic-target input[type="number"] { width: 6em; }
.ic-presets { margin-top: 10px; }
.ic-buttons { margin-top: 14px; }

/* File list ------------------------------------------------------------------------ */
.ic-summary { margin: 0 0 4px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.at-list.ic-list { margin-top: 10px; }
.at-item.ic-item { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: start; }
.ic-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #F1ECF9;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--et-purple-dark);
}
.ic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.ic-sizes strong { color: var(--et-ink); font-weight: 800; }
.ic-arrow { color: var(--et-purple); }
.ic-note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--et-mute); }
.ic-note.is-error { color: #8A2219; }
.ic-note.is-warn { color: #6E4A0E; }
.ic-item .at-item-status { min-height: 0; }
.ic-item .at-item-status:empty { display: none; }
@media (max-width: 520px) {
  .at-item.ic-item { grid-template-columns: 48px minmax(0, 1fr); }
  .ic-thumb { width: 48px; height: 48px; }
}

/* Before/after compare -------------------------------------------------------------- */
.ic-compare {
  grid-column: 1 / -1; min-width: 0; contain: inline-size;
  margin-top: 6px; padding-top: 12px; border-top: 1px solid #EEE7FA;
}
.ic-compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ic-compare-cap { flex: 1 1 220px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--et-mute); }
.ic-compare-scroll {
  max-width: 100%; max-height: 75vh; overflow: auto; border-radius: 12px; -webkit-overflow-scrolling: touch;
  background: repeating-conic-gradient(#EFEAF7 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
}
.ic-compare-stage {
  position: relative; aspect-ratio: var(--ar, 1.333); width: min(100%, calc(70vh * var(--ar, 1.333)));
  margin: 0 auto; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ic-compare-stage.is-actual { margin: 0; max-width: none; }
.ic-compare-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  pointer-events: none; -webkit-user-drag: none;
}
.ic-compare-line {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(31, 23, 51, .35); pointer-events: none;
}
.ic-tag {
  position: absolute; top: 8px; padding: 2px 8px; border-radius: 999px; pointer-events: none;
  background: rgba(31, 23, 51, .72); color: #fff; font-size: 12px; font-weight: 800;
}
.ic-tag--before { left: 8px; }
.ic-tag--after { right: 8px; }
.at-tool .ic-compare-range { display: block; width: 100%; margin-top: 8px; }

/* Related tools (Korean placeholder list stays hidden until it has links) ------------- */
.ic-related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ic-related-list:empty { display: none; }
