/* 이미지 용량 줄이기 */
.icp-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.icp-summary:empty { display: none; }
.icp-summary div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--text) 4%, var(--surface)); }
.icp-summary span { color: var(--muted); font-size: 12.5px; }
.icp-summary b { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.icp-summary .good { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.icp-summary .good b { color: var(--link); }

.icp-cmp-stage { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: repeating-conic-gradient(#eef1f2 0% 25%, #fff 0% 50%) 50% / 20px 20px; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.icp-cmp-stage img { display: block; width: 100%; max-height: 60vh; object-fit: contain; pointer-events: none; }
.icp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--icp-x, 50%)); }
.icp-after img { height: 100%; }
.icp-handle { position: absolute; top: 0; bottom: 0; left: var(--icp-x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.icp-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; color: #333; box-shadow: var(--sh-sm); font-size: 16px; }
.icp-tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.icp-tag.l { left: 10px; } .icp-tag.r { right: 10px; }
.icp-cmp-range { margin-top: 10px; }

.icp-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 460px; overflow-y: auto; overscroll-behavior: contain; }
.icp-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.icp-item.is-sel { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent); }
.icp-thumb { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#eef1f2 0% 25%, #fff 0% 50%) 50% / 12px 12px; cursor: pointer; }
.icp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icp-item:not([data-status=done]) .icp-thumb img { visibility: hidden; }
.icp-item[data-status=work] .icp-thumb { animation: icp-pulse 1s infinite alternate; }
@keyframes icp-pulse { to { opacity: .45; } }
.icp-info { display: grid; gap: 2px; min-width: 0; }
.icp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.icp-size { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.icp-size b { color: var(--text); }
.icp-size em { font-style: normal; font-weight: 800; }
.icp-size em.down { color: var(--link); } .icp-size em.up { color: #c0392b; } .icp-size em.kept { color: var(--muted); font-weight: 700; }
.icp-item[data-status=error] .icp-size { color: #c0392b; }
.icp-dim { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.icp-btns { display: flex; align-items: center; gap: 4px; }
.icp-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--subtle); font-size: 15px; cursor: pointer; }
.icp-x:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.icp-custom { margin-top: 10px; font-weight: 700; }
.icp-custom input { width: 120px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); }
#icp-max { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
@media (max-width: 520px) {
  .icp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icp-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .icp-thumb { width: 48px; height: 48px; }
}
.icp-size b, .icp-size em { white-space: nowrap; }
