/* 이미지 크기 조절 · 자르기 */
.irs-stage { padding: 14px; }
.irs-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.irs-wrap canvas { display: block; max-width: 100%; max-height: 64vh; width: auto; height: auto; }
.irs-wrap .irs-fit { box-shadow: 0 0 0 1px var(--line); background: repeating-conic-gradient(#eef1f2 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.irs-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(10, 20, 24, .55); outline: 2px solid #fff; cursor: move; touch-action: none; }
.irs-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255, 255, 255, .55) calc(33.33% - .5px), rgba(255, 255, 255, .55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .55) calc(66.66% - .5px), rgba(255, 255, 255, .55) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255, 255, 255, .55) calc(33.33% - .5px), rgba(255, 255, 255, .55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .55) calc(66.66% - .5px), rgba(255, 255, 255, .55) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.irs-h { position: absolute; width: 26px; height: 26px; touch-action: none; }
.irs-h::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--primary), 0 2px 6px rgba(0, 0, 0, .35); }
.irs-h.nw { left: -13px; top: -13px; cursor: nwse-resize; } .irs-h.se { right: -13px; bottom: -13px; cursor: nwse-resize; }
.irs-h.ne { right: -13px; top: -13px; cursor: nesw-resize; } .irs-h.sw { left: -13px; bottom: -13px; cursor: nesw-resize; }
.irs-size { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.irs-size input { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.irs-pct { margin-top: 10px; }
[data-irs-outinfo].warn { color: #c0392b; }
@media (max-width: 520px) { .irs-h { width: 34px; height: 34px; } .irs-h::after { inset: 9px; } .irs-h.nw, .irs-h.ne { top: -17px; } .irs-h.sw, .irs-h.se { bottom: -17px; } .irs-h.nw, .irs-h.sw { left: -17px; } .irs-h.ne, .irs-h.se { right: -17px; } }
