.crop-preview-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    padding: 18px;
}

.crop-preview-card .img-container {
    background: var(--light-bg, #f7f8fb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
    overflow: hidden;
}

.crop-preview-download {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.crop-preview-download .btn {
    min-width: 240px;
}

.crop-batch-error {
    margin-top: 14px;
}

.crop-lock-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    background: var(--light-bg, #f7f8fb);
    cursor: pointer;
    text-align: left;
}

.crop-lock-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.crop-lock-toggle__box {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--border-color, #cfd6e2);
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.crop-lock-toggle__box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
}

.crop-lock-toggle input:checked + .crop-lock-toggle__box {
    border-color: #5b8def;
    background: #5b8def;
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.14);
}

.crop-lock-toggle input:checked + .crop-lock-toggle__box::after {
    opacity: 1;
}

.crop-lock-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crop-lock-toggle__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color, #1f2937);
}

.crop-lock-toggle__text small {
    font-size: 0.82rem;
    color: var(--light-text, #4b5563);
}

.crop-lock-toggle--compact {
    gap: 8px;
    max-width: none;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--card-bg, #fff);
}

.crop-lock-toggle--compact .crop-lock-toggle__box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.crop-lock-toggle--compact .crop-lock-toggle__box::after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
}

.crop-lock-toggle--compact .crop-lock-toggle__text strong {
    font-size: 0.82rem;
    font-weight: 600;
}

.crop-file-list-card {
    margin-top: 18px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
}

.crop-file-list-card .file-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    flex-wrap: wrap;
    gap: 10px;
}

.crop-file-list-card .file-list-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color, #1f2937);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crop-file-list-card .file-list-header h5 i {
    color: #5b8def;
}

.crop-file-list-card .file-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #5b8def;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.crop-file-list-card .file-list-actions {
    display: flex;
    gap: 8px;
}

.crop-file-list-card .file-list-body {
    max-height: 420px;
    overflow-y: auto;
}

.crop-file-list-card .file-row-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--light-text, #4b5563);
    font-size: 0.95rem;
}

.crop-file-list-card .file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.crop-file-list-card .file-row:last-child {
    border-bottom: none;
}

.crop-file-list-card .file-row:hover {
    background: rgba(91, 141, 239, 0.06);
}

.crop-file-list-card .file-row.is-active {
    background: rgba(91, 141, 239, 0.08);
}

.crop-file-list-card .file-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light-bg, #f7f8fb);
    border: 1px solid var(--border-color, #e5e7eb);
}

.crop-file-list-card .file-info {
    flex: 1;
    min-width: 0;
}

.crop-file-list-card .file-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.crop-file-list-card .file-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crop-file-list-card .file-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.12);
    color: #5b8def;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.crop-file-list-card .file-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--light-text, #4b5563);
    margin-top: 4px;
}

.crop-file-list-card .file-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.crop-file-list-card .file-actions .btn-sm {
    padding: 4px 10px;
    font-size: 0.78rem;
}

.crop-file-list-card .file-remove-btn {
    background: none;
    border: none;
    color: var(--light-text, #4b5563);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1;
}

.crop-file-list-card .file-remove-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.crop-file-list-card .file-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--light-bg, #f7f8fb);
    gap: 12px;
}

.crop-file-list-card .file-summary {
    font-size: 0.85rem;
    color: var(--light-text, #4b5563);
}

.crop-file-list-card .download-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .crop-preview-download .btn {
        width: 100%;
    }

    .crop-file-list-card .file-row {
        padding: 12px 14px;
    }

    .crop-file-list-card .file-list-header,
    .crop-file-list-card .file-list-footer {
        padding: 14px;
    }

    .crop-lock-toggle {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .crop-preview-download {
        padding-top: 14px;
    }

    .crop-file-list-card .file-row {
        align-items: flex-start;
    }

    .crop-file-list-card .file-actions {
        flex-direction: column;
    }

    .crop-file-list-card .file-name-row {
        flex-wrap: wrap;
    }

    .crop-file-list-card .file-list-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .crop-file-list-card .download-actions {
        justify-content: center;
    }
}