/* Resize Image — tool-specific pieces. */
.ri-dims { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 14px; }
.ri-dims .field { flex: 0 1 170px; }
.ri-unit { display: flex; align-items: stretch; }
.ri-unit input { flex: 1 1 auto; min-width: 0; width: 100%; border-radius: 10px 0 0 10px !important; }
.ri-unit span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--field); border-left: 0; border-radius: 0 10px 10px 0; background: var(--soft); font-weight: 700; }
.ri-lock { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--field); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.ri-lock[aria-pressed="true"] { background: var(--cat-tint); border-color: var(--cat); color: var(--cat-ink); }
.ri-lock-state { align-self: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.ri-presets { margin-top: 16px; }
.ri-label { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.ri-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ri-chips button { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.ri-chips button span { color: var(--muted); font-weight: 500; }
.ri-chips button:hover { border-color: var(--cat); }
.ri-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.ri-chips button[aria-pressed="true"] span { color: #DDD; }
