/* 🆕 (Update 62) ابزارِ برش و تنظیمِ موقعیتِ عکس */
html.fac-lock, html.fac-lock body { overflow: hidden !important; overscroll-behavior: none; }
.fac-backdrop { position: fixed; inset: 0; z-index: 2147482000; background: rgba(2,6,23,.72); display: flex; align-items: center; justify-content: center; padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)); animation: fac-fade .15s ease-out; }
.fac-dialog { background: #fff; border-radius: 20px; width: 100%; max-width: 400px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; font-family: inherit; color: #111827; }
.fac-head { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 3px; text-align: center; }
.fac-head b { font-size: 15px; }
.fac-head small { font-size: 11.5px; color: #6b7280; line-height: 1.8; }
.fac-stage { position: relative; margin: 6px auto 0; border-radius: 14px; overflow: hidden; touch-action: none; cursor: grab; background: #111827; outline: none; }
.fac-stage:active { cursor: grabbing; }
.fac-stage:focus-visible { box-shadow: 0 0 0 3px #2563eb; }
.fac-canvas { display: block; }
.fac-mask { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(2,6,23,.55); outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; }
.fac-mask.square { border-radius: 8px; }
.fac-tools { display: flex; align-items: center; gap: 6px; padding: 12px 16px 4px; direction: ltr; }
.fac-range { flex: 1; accent-color: #2563eb; }
.fac-ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; color: #374151; }
.fac-ic:hover { background: #f3f4f6; }
.fac-foot { display: flex; gap: 8px; padding: 12px 16px 16px; }
.fac-btn { flex: 1; border: 1px solid #d1d5db; background: #fff; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.fac-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; flex: 1.6; }
.fac-btn[disabled] { opacity: .7; cursor: wait; }
.fac-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.fac-trigger { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fac-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c7d2fe; background: #eef2ff; color: #1e40af; border-radius: 10px; padding: 8px 14px;
    font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fac-pick:focus-within { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }
.fac-pick.disabled { opacity: .55; pointer-events: none; }
.fac-repos { border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: #374151; }
.fac-err { width: 100%; font-size: 11.5px; color: #b91c1c; text-align: center; }
@keyframes fac-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fac-backdrop { animation: none; } }
