/* Scoped upload UI. Existing site forms, typography and layout are unchanged. */
.ff-image-upload { width:100%; min-width:0; color:var(--ink,#111512); }
.ff-image-upload-label { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; font-size:14px; font-weight:750; margin-bottom:10px; }
.ff-image-upload-counter { font-size:12px; font-weight:600; color:var(--muted,#626c66); }
.ff-image-dropzone { position:relative; display:flex; align-items:center; flex-direction:column; justify-content:center; gap:6px; padding:24px 18px; text-align:center; min-height:175px; border:1.5px dashed var(--line-dark,#cbd3ce); border-radius:16px; background:var(--soft,#f4f7f5); transition:border-color .15s ease, background .15s ease; }
.ff-image-dropzone:hover,.ff-image-dropzone.is-dragover { border-color:var(--ink,#111512); background:#eef3ea; }
.ff-image-dropzone:focus-within { outline:2px solid var(--ink,#111512); outline-offset:3px; }
.ff-image-dropzone>svg { color:var(--ink,#111512); flex:none; }
.ff-image-dropzone-title { max-width:100%; font-weight:700; font-size:14px; line-height:1.4; }
.ff-image-upload-hint { font-size:12px; color:var(--muted,#626c66); line-height:1.5; }
.ff-image-upload-buttons { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; margin-top:9px; }
.ff-image-choose,.ff-image-camera { display:inline-flex; min-height:42px; align-items:center; justify-content:center; border-radius:999px; padding:9px 17px; font-size:13px; line-height:1.25; font-weight:750; cursor:pointer; background:var(--ink,#111512); border:1px solid var(--ink,#111512); color:#fff; transition:transform .15s ease,background .15s ease; }
.ff-image-choose:hover,.ff-image-camera:hover { transform:translateY(-1px); }
.ff-image-choose:focus-within,.ff-image-camera:focus-within { outline:2px solid var(--ink,#111512); outline-offset:3px; }
.ff-image-camera { display:none; background:#fff; color:var(--ink,#111512); }
.ff-image-upload.has-camera .ff-image-camera { display:inline-flex; }
.ff-image-input { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; padding:0 !important; margin:0 !important; }
.ff-image-previews,.ff-private-image-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; margin-top:12px; min-width:0; }
.ff-image-preview-card { position:relative; min-width:0; overflow:hidden; border-radius:12px; border:1px solid var(--line,#dce2de); background:#fff; }
.ff-image-preview-card>img { width:100%; height:96px; object-fit:cover; display:block; }
.ff-image-preview-name { display:block; font-size:11px; font-weight:600; line-height:1.4; padding:8px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ff-image-remove { position:absolute; right:5px; top:5px; display:flex; align-items:center; justify-content:center; width:30px; height:30px; border:0; border-radius:100%; background:#fff; color:var(--ink,#111512); box-shadow:0 1px 8px #0003; cursor:pointer; }
.ff-image-remove:hover { background:var(--accent,#d6f257); }
.ff-image-remove:focus-visible { outline:3px solid #111; outline-offset:2px; }
.ff-image-status { margin:7px 0 0 !important; min-height:16px; font-size:12px; line-height:1.5; color:var(--muted,#626c66); }
.ff-image-status.is-error { color:#ae2424; font-weight:700; }
.ff-image-upload.is-processing .ff-image-dropzone { opacity:.7; }
.ff-private-image-grid { grid-template-columns:repeat(auto-fill,minmax(110px,160px)); }
.ff-private-image-grid a { display:block; min-width:0; border:1px solid var(--line,#dce2de); border-radius:12px; overflow:hidden; background:#fff; text-decoration:none; }
.ff-private-image-grid img { width:100%; height:110px; object-fit:cover; display:block; }
.ff-private-image-grid span { display:block; padding:7px 9px; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-lead-images { padding:0 18px 15px; }
.dashboard-lead-images>strong { font-size:13px; }
.dashboard-lead-images .ff-private-image-grid { margin-top:9px; }
.ff-legacy-upload { position:relative; }
.ff-legacy-upload.is-dragover { outline:2px dashed var(--ink,#111512); outline-offset:3px; }
.ff-legacy-previews { width:100%; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); }
.ff-legacy-previews .ff-image-preview-card>img { height:86px; }
.ff-legacy-upload~.ff-image-status { margin-top:7px !important; }
@media (max-width:620px) { .ff-image-dropzone { padding:19px 12px; min-height:168px; } .ff-image-choose,.ff-image-camera { min-height:44px; } .ff-image-previews { grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:8px; } .ff-image-preview-card>img { height:91px; } .ff-private-image-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion:reduce) { .ff-image-dropzone,.ff-image-choose,.ff-image-camera { transition:none; } }

.ff-legacy-camera { display:inline-flex !important; min-height:37px; margin:9px 0 0; background:#fff; border:1px solid var(--line-dark,#cbd3ce); }

/* Form-specific label styles previously overrode the light button text. */
.ff-image-upload .ff-image-dropzone .ff-image-choose { color:#fff !important; margin:0; }
.ff-image-upload .ff-image-dropzone .ff-image-camera { color:var(--ink,#111512) !important; margin:0; }
.ff-image-upload .ff-image-dropzone .ff-image-choose,
.ff-image-upload .ff-image-dropzone .ff-image-camera { font-size:13px; font-weight:750; line-height:1.25; text-align:center; }
