/* IMAGE WORKSPACE */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
    min-height: 30vw;
    border: .14vw dashed var(--line);
    border-radius: 1.2vw;
    background: white;
}

.upload-area.dragging {
    border-color: var(--blue);
}

.clean-icon {
    width: 3vw;
    height: 3vw;
}

.upload-note {
    color: var(--muted);
}

.batch-toolbar, .batch-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1vw;
}

.batch-toolbar {
    justify-content: space-between;
    margin-bottom: 2vw;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5vw;
}

.image-card {
    min-width: 0;
    padding: 1.5vw;
    border-radius: 1.2vw;
    background: white;
    overflow-wrap: anywhere;
}

.image-card img {
    width: 100%;
    height: 13vw;
    object-fit: contain;
    background: #f1f3f5;
    border-radius: .7vw;
}

.image-name {
    margin: 1vw 0 .5vw;
    font-weight: 600;
}

.image-info, .image-status {
    color: var(--muted);
    margin-bottom: 1vw;
}

.image-status[status="error"] {
    color: #b53535;
}

.image-controls {
    display: flex;
    gap: .5vw;
    flex-wrap: wrap;
}

.image-card details {
    margin-top: 1vw;
    line-height: 1.6;
}

.image-card pre {
    white-space: pre-wrap;
    font: inherit;
}

#clean-status {
    margin-bottom: 1.5vw;
}

@media (max-width: 680px) {
    .upload-area {
        min-height: 85vw;
        gap: 5vw;
        padding: 5vw;
        border-radius: 4vw;
        text-align: center;
    }

    .clean-icon {
        width: 9vw;
        height: 9vw;
    }

    .batch-toolbar, .batch-actions {
        gap: 2vw;
        margin-bottom: 3vw;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }

    .image-card {
        padding: 3vw;
        border-radius: 3vw;
    }

    .image-card img {
        height: 30vw;
        border-radius: 2vw;
    }

    .image-name, .image-info, .image-status, .image-card details {
        margin: 3vw 0;
    }

    .image-controls {
        gap: 2vw;
    }

    .image-card .button {
        padding: 2.5vw 3vw;
    }
}
