.ms-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 220px;
    padding: 16px;
    border: 2px dashed #d6dde0;
    border-radius: 14px;
    background: #fff;
    color: #5a6770;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.ms-upload:hover { background: #f3f5f6; border-color: #c2cccf; }
.ms-upload.is-dragover { background: #eaf6f8; border-color: #28a3b3; }
.ms-upload.is-error { border-color: #e0b4b4; }

.ms-upload__img {
    display: none;
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
}
.ms-upload.is-filled .ms-upload__img { display: block; }
.ms-upload.is-filled .ms-upload__hint { display: none; }

.ms-upload__hint { font-size: 13px; font-weight: 600; }
.ms-upload__hint i { display: block; margin-bottom: 6px; font-size: 22px; color: #28a3b3; }

.ms-upload__progress {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .7);
    border-radius: 14px;
}
.ms-upload.is-busy .ms-upload__progress { display: flex; }
.ms-upload__progress::after {
    content: "";
    width: 26px;
    height: 26px;
    border: 3px solid #cfe3e6;
    border-top-color: #28a3b3;
    border-radius: 50%;
    animation: ms-upload-spin .8s linear infinite;
}
.ms-upload.is-busy { pointer-events: none; }

@keyframes ms-upload-spin { to { transform: rotate(360deg); } }
