.upload-picker-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 12px 0 0;
}

.option-grid .wide-field {
    grid-column: 1 / -1;
}

.option-grid small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

.option-grid .option-toggle {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px 0 0;
    color: #172033;
    line-height: 1.35;
}

.option-grid .option-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #3468f6;
}

.option-grid .option-toggle span {
    min-width: 0;
}

.transfer-stage .drop-zone {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 104, 246, .22);
    background:
        radial-gradient(circle at 50% 24%, rgba(52, 104, 246, .16), transparent 30%),
        linear-gradient(180deg, #eef4ff, #f8fbff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.transfer-stage .drop-zone::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(52, 104, 246, .42);
    border-radius: 14px;
    pointer-events: none;
}

.transfer-stage .drop-zone::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(22, 184, 165, .18), transparent 64%);
    right: -70px;
    bottom: -90px;
    pointer-events: none;
}

.transfer-stage .drop-zone.dragging {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(22, 184, 165, .58);
    box-shadow: 0 18px 44px rgba(31, 74, 150, .14);
}

.transfer-stage .drop-zone .drop-plus {
    position: relative;
    z-index: 1;
    box-shadow: 0 14px 30px rgba(52, 104, 246, .25);
    transition: transform .2s ease;
}

.transfer-stage .drop-zone:hover .drop-plus,
.transfer-stage .drop-zone.dragging .drop-plus {
    transform: rotate(8deg) scale(1.04);
}

.picker-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #172033;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.picker-button:hover {
    transform: translateY(-1px);
    border-color: rgba(52, 104, 246, .42);
    box-shadow: 0 12px 26px rgba(31, 74, 150, .10);
}

.picker-button i {
    color: #3468f6;
    font-size: 18px;
}

.upload-file-list {
    display: grid;
    gap: 12px;
    animation: uploadListIn .24s ease-out;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.upload-file-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.upload-file-summary strong {
    color: #172033;
    font-size: 15px;
}

.upload-file-summary span {
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}

.upload-file-limit-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.upload-file-limit-error i {
    flex: 0 0 auto;
    color: #dc2626;
    font-size: 17px;
}

.upload-file-list.has-error .upload-file-row {
    border-color: rgba(220, 38, 38, .24);
}

.upload-file-list ul {
    max-height: 290px;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.upload-file-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(8px);
    animation: uploadRowIn .28s ease-out forwards;
}

.upload-file-remove {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: #667085;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.upload-file-remove:hover,
.upload-file-remove:focus-visible {
    color: #dc2626;
    background: #fff5f5;
    border-color: rgba(220, 38, 38, .28);
    transform: translateY(-1px);
}

.upload-file-list.is-uploading-list .upload-file-remove {
    cursor: not-allowed;
    opacity: .45;
    pointer-events: none;
}

.upload-file-row:nth-child(2) { animation-delay: .03s; }
.upload-file-row:nth-child(3) { animation-delay: .06s; }
.upload-file-row:nth-child(4) { animation-delay: .09s; }
.upload-file-row:nth-child(5) { animation-delay: .12s; }
.upload-file-row:nth-child(n+6) { animation-delay: .15s; }

.upload-file-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #3468f6;
    background: #e8efff;
    border-radius: 11px;
}

.upload-file-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.upload-file-meta strong {
    overflow: hidden;
    color: #172033;
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-meta small,
.upload-file-percent {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.upload-file-progress {
    height: 6px;
    overflow: hidden;
    background: #e6edf6;
    border-radius: 999px;
}

.upload-file-progress span {
    width: 0%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #16b8a5, #3468f6);
    border-radius: inherit;
    transition: width .18s ease;
}

.upload-file-row.is-uploading .upload-file-icon {
    color: #ffffff;
    background: #3468f6;
}

.upload-file-row.is-uploading .upload-file-icon i {
    animation: uploadPulse .78s ease-in-out infinite alternate;
}

.upload-file-row.is-complete {
    border-color: rgba(22, 184, 165, .34);
    background: #f2fbf9;
}

.upload-file-row.is-complete .upload-file-icon {
    color: #ffffff;
    background: #16b8a5;
}

.upload-file-row.is-error {
    border-color: rgba(220, 38, 38, .30);
    background: #fff5f5;
}

.upload-file-row.is-error .upload-file-icon {
    color: #ffffff;
    background: #dc2626;
}

.transfer-stage .upload-result {
    color: #172033;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.transfer-stage .upload-result.info {
    color: #17336f;
    background: #eef4ff;
    border-color: #b8c9ff;
}

.transfer-stage .upload-result.success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.transfer-stage .upload-result.danger {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}

.transfer-stage .upload-result strong {
    color: inherit;
}

.transfer-stage .upload-result a {
    color: #1d4ed8;
    font-weight: 850;
}

@keyframes uploadListIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes uploadRowIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes uploadPulse {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

@media (max-width: 620px) {
    .upload-picker-actions {
        grid-template-columns: 1fr;
    }

    .upload-file-summary {
        display: grid;
        gap: 2px;
    }

    .upload-file-list ul {
        max-height: 240px;
    }
}
