/* DZF PRELIVE - shared drag-and-drop zone for existing file inputs (D1). Without JavaScript nothing here applies (classes are added by the script). */
.dzf-dz { position: relative; margin: 6px 0 4px; max-width: 100%; }
.dzf-dz__input { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.dzf-dz__zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 132px; box-sizing: border-box;
	padding: 18px 16px; border: 2px dashed #8a94a6; border-radius: 12px; background: #fafbfc; color: #1f2937; text-align: center; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease; }
.dzf-dz__icon { width: 28px; height: 28px; border-radius: 50%; background: #e6eefb; position: relative; }
.dzf-dz__icon::before { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 12px; margin-left: -1px; background: #0b5cad; }
.dzf-dz__icon::after { content: ""; position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -5px; border-left: 2px solid #0b5cad; border-top: 2px solid #0b5cad; transform: rotate(45deg); }
.dzf-dz__lead { font-weight: 600; font-size: 1rem; }
.dzf-dz__or { font-size: .875rem; color: #4b5563; }
.dzf-dz__pick { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 8px;
	border: 1px solid #0b5cad; background: #fff; color: #0b5cad; font-weight: 600; cursor: pointer; }
.dzf-dz__pick:hover { background: #eef5ff; }
.dzf-dz__hint { font-size: .875rem; color: #4b5563; }
.dzf-dz.is-over .dzf-dz__zone { border-style: solid; border-color: #0b5cad; background: #eef5ff; }
.dzf-dz__input:focus-visible ~ .dzf-dz__zone { outline: 3px solid #0b5cad; outline-offset: 2px; }
.dzf-dz__input:focus-visible ~ .dzf-dz__zone .dzf-dz__pick { background: #eef5ff; }
.dzf-dz[data-state="ready"] .dzf-dz__zone { border-color: #027a48; }
.dzf-dz[data-state="error"] .dzf-dz__zone { border-color: #b42318; }
.dzf-dz[data-state="locked"] .dzf-dz__zone { border-style: dotted; background: #f3f4f6; color: #6b7280; cursor: not-allowed; }
.dzf-dz__file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
.dzf-dz__file[hidden] { display: none; }
.dzf-dz__list { list-style: none; margin: 0; padding: 0; flex: 1 1 220px; min-width: 0; }
.dzf-dz__list li { overflow-wrap: anywhere; padding: 2px 0; }
.dzf-dz__name { font-weight: 600; }
.dzf-dz__size { color: #4b5563; }
.dzf-dz__ready { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #ecfdf3; color: #027a48; font-size: .8125rem; font-weight: 600; }
.dzf-dz__remove { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid #b42318; background: #fff; color: #b42318; font-weight: 600; cursor: pointer; }
.dzf-dz__remove:focus-visible { outline: 3px solid #b42318; outline-offset: 2px; }
.dzf-dz__status { margin: 6px 0 0; min-height: 1.25em; font-size: .875rem; }
.dzf-dz__status.is-error { color: #b42318; font-weight: 600; }
.dzf-dz__status.is-ok { color: #027a48; }
.dzf-dz-toast { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 560px; margin: 0 auto; padding: 12px 16px; border-radius: 10px;
	background: #1f2937; color: #fff; font-size: .9375rem; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.dzf-dz-toast.is-visible { opacity: 1; transform: none; }
@media (max-width: 600px) { .dzf-dz__zone { min-height: 112px; padding: 14px 12px; } .dzf-dz__lead { font-size: .9375rem; } .dzf-dz__file { flex-direction: column; align-items: stretch; } .dzf-dz__remove { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dzf-dz__zone, .dzf-dz-toast { transition: none; } }
