/* 이미지 포맷 변환기 (/p/image-converter/) 전용. 아이콘 제목·결과 패널·요약 카드는 webtools-design.css 의
   계산형 웹툴 공통, 업로드 영역·선택지·슬라이더는 webtools.css 의 .wt-drop·.wt-option·.wt-range 를 쓴다.
   요소 선택자는 쓰지 않는다(특이도 함정). */
.icv-drop { max-width: 860px; margin-inline: auto; padding: 36px 24px; transition: border-color 160ms, background 160ms; }
.icv-drop-icon { width: 44px; height: 44px; color: var(--accent); }
.icv-drop-title { margin: 0; color: var(--heading); font-size: 18px; font-weight: 700; }
.icv-drop-note { margin: 0; }
.icv-pick { cursor: pointer; }
.icv-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icv-file:focus-visible + .icv-pick { outline: 3px solid var(--accent); outline-offset: 3px; }

.icv-selected { max-width: 860px; margin: 20px auto 0; }
.icv-selected-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.icv-selected-count { color: var(--heading); font-size: 15px; }
.icv-link { border: 0; padding: 4px 2px; background: none; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.icv-files { display: grid; gap: 6px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.icv-file-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--alt); font-size: 14px; }
.icv-file-name { min-width: 0; overflow: hidden; color: var(--heading); text-overflow: ellipsis; white-space: nowrap; }
.icv-file-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.icv-remove { min-height: 30px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.icv-remove:hover { border-color: var(--danger); color: var(--danger); }

.icv-options { display: grid; gap: 20px; max-width: 860px; margin: 28px auto 0; }
.wt-shell .icv-fieldset { margin: 0; }
.icv-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.wt-design .icv-format { margin-top: 0; font-weight: 700; color: var(--heading); }
.icv-format-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.icv-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.icv-quality-value { margin-left: 6px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.icv-hint { margin: 0; font-size: 13px; }
.icv-quality .wt-range:disabled { opacity: .4; }
.icv-bg-row { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.icv-color { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.icv-bg-code { color: var(--heading); font-weight: 700; font-variant-numeric: tabular-nums; }
.icv-actions { justify-content: center; margin-top: 28px; }
.wt-design .icv-actions > .wt-button { min-width: 220px; }
.icv-status { max-width: 860px; margin-inline: auto; }
.icv-status:not(:empty) { margin-top: 20px; }

.icv-results { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.icv-result { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--surface); }
.icv-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: contain; background: repeating-conic-gradient(#eef1f3 0 25%, #fff 0 50%) 50% / 16px 16px; border: 1px solid var(--border-soft); }
.icv-thumb-solid { background: var(--alt); }
.icv-thumb-failed { display: grid; place-items: center; background: rgb(179 38 30 / 8%); color: var(--danger); font-size: 26px; font-weight: 700; }
.icv-result-info { display: grid; gap: 3px; min-width: 0; }
.icv-result-name { overflow: hidden; color: var(--heading); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.icv-result-meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.icv-result-error { color: var(--danger); font-size: 13px; }
.icv-result-failed { border-color: rgb(179 38 30 / 25%); }
.wt-design .icv-download { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.icv-result-actions { justify-content: center; margin-top: 24px; }

@media (max-width: 767px) {
    .icv-drop { padding: 28px 16px; }
    .icv-option-grid { grid-template-columns: 1fr; gap: 16px; }
    .icv-actions > .wt-button { width: 100%; }
    .icv-result { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; }
    .icv-thumb { width: 56px; height: 56px; }
    .wt-design .icv-download { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 480px) {
    .icv-formats { grid-template-columns: 1fr; }
    .icv-file-item { grid-template-columns: minmax(0, 1fr) auto; }
    .icv-file-size { display: none; }
}
