.nelx-jfb-live-enhanced{--nelx-jfb-primary:#1e3a8a;--nelx-jfb-accent:#2563eb;--nelx-jfb-success:#10a861;--nelx-jfb-danger:#ef4444;--nelx-jfb-text:#14213d;--nelx-jfb-muted:#64748b;--nelx-jfb-line:#d9e3f1;--nelx-jfb-soft:#f7faff;--nelx-jfb-radius:12px;font-family:inherit}
.nelx-jfb-live-enhanced>.jet-form-builder-file-upload__content,.nelx-jfb-live-enhanced>.jet-form-builder-file-upload__message{display:none!important}
.nelx-jfb-live-enhanced .jet-form-builder-file-upload__fields{position:relative;width:100%}
.nelx-jfb-live-enhanced .jet-form-builder-file-upload__input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.nelx-jfb-uploader{width:100%}
.nelx-jfb-dropzone{position:relative;display:flex;min-height:236px;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:34px 24px;border:2px dashed #b8d2fb;border-radius:var(--nelx-jfb-radius);background:linear-gradient(180deg,#fbfdff 0%,var(--nelx-jfb-soft) 100%);cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;outline:none}
.nelx-jfb-dropzone:hover,.nelx-jfb-dropzone:focus-visible{border-color:#7fb1ff;box-shadow:0 0 0 4px rgba(37,99,235,.06)}
.nelx-jfb-dropzone.is-dragover{border-color:var(--nelx-jfb-accent);background:#f0f6ff;box-shadow:0 0 0 4px rgba(37,99,235,.08) inset}
.nelx-jfb-dropzone__icon{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;flex:0 0 54px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin-bottom:14px;color:#3488ef;transition:transform .18s ease}
.nelx-jfb-live-enhanced .nelx-jfb-dropzone__icon svg{display:block!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:none!important;max-height:none!important;flex:none!important}
.nelx-jfb-dropzone.is-dragover .nelx-jfb-dropzone__icon{transform:translateY(-3px)}
.nelx-jfb-dropzone__title{margin:0;color:var(--nelx-jfb-text);font-size:18px;line-height:1.35;font-weight:700}
.nelx-jfb-dropzone__or{margin:4px 0 9px;color:var(--nelx-jfb-muted);font-size:14px}
.nelx-jfb-dropzone__browse{appearance:none;border:0;border-radius:8px;background:linear-gradient(180deg,#21469f 0%,#17377f 100%);color:#fff;padding:11px 22px;font:inherit;font-size:14px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(30,58,138,.16);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.nelx-jfb-dropzone__browse:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(30,58,138,.22)}
.nelx-jfb-dropzone__meta{margin-top:13px;color:#58708e;font-size:13px;line-height:1.45}
.nelx-jfb-files{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.nelx-jfb-file{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;border:1px solid var(--nelx-jfb-line);border-radius:11px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.04);overflow:hidden}
.nelx-jfb-file.is-uploaded{border-color:#c9ecd9;background:#f7fdf9}
.nelx-jfb-file.is-error{border-color:#fecaca;background:#fff8f8}
.nelx-jfb-file__preview{width:46px;height:46px;border:1px solid #e1e8f1;border-radius:9px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#718096;flex:none}
.nelx-jfb-file__preview img{width:100%;height:100%;object-fit:cover;display:block}
.nelx-jfb-file__preview svg{width:22px;height:22px}
.nelx-jfb-file__body{min-width:0}
.nelx-jfb-file__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#13213d;font-size:14px;line-height:1.35;font-weight:700}
.nelx-jfb-file__sub{display:flex;align-items:center;gap:6px;min-height:18px;margin-top:2px;color:var(--nelx-jfb-muted);font-size:12px;line-height:1.35}
.nelx-jfb-file__status.is-success{color:var(--nelx-jfb-success);font-weight:700}
.nelx-jfb-file__status.is-error{color:var(--nelx-jfb-danger);font-weight:700}
.nelx-jfb-file__progress-row{display:flex;align-items:center;gap:10px;margin-top:8px}
.nelx-jfb-file__track{height:6px;flex:1;overflow:hidden;border-radius:999px;background:#e4eaf2}
.nelx-jfb-file__bar{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--nelx-jfb-accent),#3488ef);transition:width .12s linear}
.nelx-jfb-file__percent{width:34px;text-align:right;color:#41536c;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.nelx-jfb-file__actions{display:flex;align-items:center;gap:7px}
.nelx-jfb-file__success{display:none;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;background:#10a861;color:#fff}
.nelx-jfb-file.is-uploaded .nelx-jfb-file__success{display:flex}
.nelx-jfb-file__success svg{width:14px;height:14px}
.nelx-jfb-file__remove{display:flex;width:29px;height:29px;align-items:center;justify-content:center;border:0;border-radius:50%;background:#edf2f8;color:#29415e;cursor:pointer;padding:0;transition:background .15s ease,color .15s ease}
.nelx-jfb-file__remove:hover{background:#fee2e2;color:#b91c1c}
.nelx-jfb-file__remove svg{width:15px;height:15px}
.nelx-jfb-inline-error{display:none;margin-top:10px;padding:10px 12px;border:1px solid #fecaca;border-radius:8px;background:#fff5f5;color:#b42318;font-size:13px;line-height:1.45}
.nelx-jfb-inline-error.is-visible{display:block}
.nelx-jfb-file.is-uploaded .nelx-jfb-file__progress-row{display:none}
.nelx-jfb-file.is-error .nelx-jfb-file__track{background:#fee2e2}
.nelx-jfb-file.is-error .nelx-jfb-file__bar{background:#ef4444}

.nelx-jfb-file.is-existing{border-color:#d7e3f2;background:#fbfdff}
.nelx-jfb-file.is-existing .nelx-jfb-file__success{display:flex}
.njet-live-upload-busy,
.njet-live-upload-busy:hover,
.njet-live-upload-busy:focus{
  opacity:.62!important;
  cursor:wait!important;
  pointer-events:none!important;
  filter:saturate(.75);
}
@media (max-width:767px){.nelx-jfb-dropzone{min-height:205px;padding:28px 16px}.nelx-jfb-dropzone__title{font-size:16px}.nelx-jfb-file{grid-template-columns:42px minmax(0,1fr) auto;padding:11px}.nelx-jfb-file__preview{width:40px;height:40px}.nelx-jfb-file__actions{gap:4px}}

/* Nelx Studio Components dark-mode contract. */
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced{
  --nelx-jfb-text:#f8fafc;
  --nelx-jfb-muted:#94a3b8;
  --nelx-jfb-line:#334155;
  --nelx-jfb-soft:#0f172a;
  color-scheme:dark;
}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-dropzone{
  border-color:#475569;
  background:linear-gradient(180deg,#111827 0%,#0f172a 100%);
}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-dropzone:hover,
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-dropzone:focus-visible{border-color:#4d7fd1;box-shadow:0 0 0 4px rgba(52,136,239,.10)}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-dropzone.is-dragover{border-color:var(--nelx-jfb-accent);background:#13233f;box-shadow:0 0 0 4px rgba(52,136,239,.12) inset}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-dropzone__title,
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file__name{color:#f8fafc}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-dropzone__meta{color:#94a3b8}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file{background:#111827;border-color:#334155;box-shadow:0 3px 12px rgba(0,0,0,.18)}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file.is-uploaded{background:#0d241a;border-color:#1f6b49}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file.is-existing{background:#111827;border-color:#334155}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file.is-error{background:#2a1518;border-color:#7f3038}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file__preview{background:#0f172a;border-color:#334155;color:#94a3b8}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file__track{background:#253247}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file__percent{color:#cbd5e1}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file__remove{background:#1e293b;color:#cbd5e1}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-file__remove:hover{background:#4a1f26;color:#fecaca}
html[data-nelx-theme="dark"] .nelx-jfb-live-enhanced .nelx-jfb-inline-error{background:#2a1518;border-color:#7f3038;color:#fecaca}
