.img-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
    user-select: none;
}
.img-dropzone:hover,
.img-dropzone.dragover { border-color: #0d6efd; background: #eef6ff; }
.img-dropzone.dragover { transform: scale(1.005); }
.img-dropzone .dz-icon { font-size: 44px; line-height: 1; }

.thumb-box {
    width: 76px; height: 76px; flex: 0 0 76px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.min-w-0 { min-width: 0; }
.file-name {
    max-width: 100%; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.stat-num { font-variant-numeric: tabular-nums; }
.card-item.is-working { opacity: .7; }

.ratio-btns { display: flex; flex-wrap: wrap; gap: .35rem; }
.ratio-btn {
    padding: .25rem .7rem;
    font-size: .82rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    color: #374151;
}
.ratio-btn:hover { border-color: #93c5fd; background: #f0f7ff; }
.ratio-btn.active { border-color: #0d6efd; background: #0d6efd; color: #fff; }

.fit-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.fit-btn {
    flex: 1;
    min-width: 130px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: .55rem .65rem;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
}
.fit-btn:hover { border-color: #93c5fd; background: #f0f7ff; }
.fit-btn.active {
    border-color: #0d6efd;
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}
.fit-btn .fit-name { font-weight: 600; font-size: .88rem; }
.fit-btn .fit-desc { font-size: .7rem; color: #6b7280; margin-top: 2px; }
