    .upload-area {
        border: 2px dashed #dee2e6;
        border-radius: 16px;
        padding: 3rem 2rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .upload-area:hover {
        border-color: #0d6efd;
        background: #f0f7ff;
        transform: scale(1.01);
    }
    
    .upload-area.dragover {
        border-color: #0d6efd;
        background: #e7f1ff;
        transform: scale(1.02);
    }
    
    .upload-icon {
        font-size: 4rem;
        color: #adb5bd;
        margin-bottom: 1rem;
    }
    
    .info-card {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .rdim-spec-card {
        border: 1px solid #e2e8f0;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }
    .rdim-spec-card-title {
        color: #1e3a5f;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    .rdim-spec-card-lead {
        font-size: 0.9rem;
        color: #495057;
        margin-bottom: 0.5rem;
    }
    .rdim-spec-list {
        padding-left: 1.2rem;
        margin-bottom: 0;
        font-size: 0.875rem;
        color: #495057;
    }
    .rdim-spec-list li {
        margin-bottom: 0.35rem;
    }

    .rdim-doc-alert {
        display: flex;
        gap: 0.65rem;
        align-items: flex-start;
        padding: 0.85rem 1rem;
        margin-bottom: 1.25rem;
        border-radius: 10px;
        border: 1px solid #f59e0b;
        background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
        color: #78350f;
        font-size: 0.875rem;
        line-height: 1.45;
    }
    .rdim-doc-alert-icon {
        flex-shrink: 0;
        color: #d97706;
        font-size: 1.15rem;
        line-height: 1.2;
    }
    .rdim-doc-alert-body {
        flex: 1;
        min-width: 0;
    }
    .rdim-doc-alert--below {
        margin-top: 1.5rem;
    }
    .rdim-spec-card--collapsed {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    .rdim-spec-card--collapsed .rdim-spec-card-summary {
        font-size: 0.875rem;
        font-weight: 600;
        color: #334155;
        cursor: pointer;
        padding: 0.5rem 0;
        list-style: none;
    }
    .rdim-spec-card--collapsed .rdim-spec-card-summary::marker,
    .rdim-spec-card--collapsed .rdim-spec-card-summary::-webkit-details-marker {
        display: none;
    }
    .rdim-spec-card--collapsed .rdim-spec-card-summary::after {
        content: "+";
        float: right;
        font-weight: 700;
        color: #64748b;
    }
    .rdim-spec-card--collapsed[open] .rdim-spec-card-summary::after {
        content: "−";
    }
    
    .info-card h5 {
        color: #212529;
        margin-bottom: 1rem;
    }
    
    .info-card ul {
        margin-bottom: 0;
        padding-left: 1.25rem;
    }
    
    .info-card li {
        margin-bottom: 0.5rem;
    }

    .rdim-upload-title {
        color: #1e3a5f;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.35rem;
    }
    .rdim-upload-sub {
        font-size: 0.875rem;
        color: #6c757d;
    }
    
    .rdim-canvas {
        display: none;
    }
    .sharpness-badge {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        background: #e9ecef;
        color: #495057;
    }
    .sharpness-badge.sharp {
        background: #d1fae5;
        color: #059669;
    }
    .sharpness-badge.low {
        background: #fef3c7;
        color: #b45309;
    }

    /* ========== IMAGE EDITOR MODAL (WhatsApp Style) ========== */
    .image-editor-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        z-index: 9999;
        display: none;
        flex-direction: column;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .image-editor-modal.active {
        display: flex;
        opacity: 1;
    }
    
    /* Top Bar */
    .editor-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(10px);
        z-index: 10;
    }
    
    .editor-top-bar .btn-close-editor {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .editor-top-bar .btn-close-editor:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .editor-dimensions {
        background: rgba(255,255,255,0.15);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.875rem;
        color: #fff;
        font-weight: 500;
    }
    
    .editor-dimensions.correct {
        background: rgba(37, 211, 102, 0.3);
        color: #25d366;
    }
    
    /* Canvas Area - Full space */
    .editor-canvas-area {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        overflow: hidden;
        position: relative;
    }
    
    .editor-image-wrapper {
        position: relative;
        max-width: 100%;
        max-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .editor-image {
        max-width: 100%;
        max-height: calc(100vh - 180px);
        object-fit: contain;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }
    
    /* Ratio Guide (1.5:1) - Document silhouette (visível também no modo recorte) */
    .ratio-guide {
        position: absolute;
        border: 2.5px dashed rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        pointer-events: none;
        z-index: 8;
        display: none;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    }
    
    .ratio-guide.active {
        display: block;
    }
    
    .ratio-guide-label {
        position: absolute;
        top: -32px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        padding: 6px 14px;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        font-weight: 500;
    }
    
    /* Document icon inside ratio guide */
    .ratio-guide::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 72px;
        border: 2px dashed rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        opacity: 0.5;
    }

    /* Crop Overlay (z-index abaixo da silhueta para ela continuar visível) */
    .crop-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        display: none;
        z-index: 5;
    }
    
    .crop-overlay.active {
        display: block;
        pointer-events: auto;
    }
    
    .crop-box {
        position: absolute;
        border: 2px solid #fff;
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
        cursor: move;
        transition: box-shadow 0.2s;
    }
    
    /* Grid lines inside crop box */
    .crop-grid {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
    }
    
    .crop-grid::before,
    .crop-grid::after {
        content: '';
        position: absolute;
        background: rgba(255,255,255,0.3);
    }
    
    .crop-grid::before {
        top: 33.33%;
        left: 0;
        right: 0;
        height: 1px;
        box-shadow: 0 calc(33.33% * 2 - 33.33%) 0 rgba(255,255,255,0.3);
    }
    
    .crop-grid::after {
        left: 33.33%;
        top: 0;
        bottom: 0;
        width: 1px;
        box-shadow: calc(33.33% * 2 - 33.33%) 0 0 rgba(255,255,255,0.3);
    }
    
    .crop-grid-h1, .crop-grid-h2, .crop-grid-v1, .crop-grid-v2 {
        position: absolute;
        background: rgba(255,255,255,0.25);
    }
    
    .crop-grid-h1, .crop-grid-h2 {
        left: 0;
        right: 0;
        height: 1px;
    }
    
    .crop-grid-h1 { top: 33.33%; }
    .crop-grid-h2 { top: 66.66%; }
    
    .crop-grid-v1, .crop-grid-v2 {
        top: 0;
        bottom: 0;
        width: 1px;
    }
    
    .crop-grid-v1 { left: 33.33%; }
    .crop-grid-v2 { left: 66.66%; }
    
    /* WhatsApp-style corner handles */
    .crop-corner {
        position: absolute;
        width: 20px;
        height: 20px;
        z-index: 10;
    }
    
    .crop-corner::before,
    .crop-corner::after {
        content: '';
        position: absolute;
        background: #fff;
        border-radius: 2px;
    }
    
    .crop-corner.nw { top: -3px; left: -3px; cursor: nw-resize; }
    .crop-corner.nw::before { top: 0; left: 0; width: 20px; height: 3px; }
    .crop-corner.nw::after { top: 0; left: 0; width: 3px; height: 20px; }
    
    .crop-corner.ne { top: -3px; right: -3px; cursor: ne-resize; }
    .crop-corner.ne::before { top: 0; right: 0; width: 20px; height: 3px; }
    .crop-corner.ne::after { top: 0; right: 0; width: 3px; height: 20px; }
    
    .crop-corner.sw { bottom: -3px; left: -3px; cursor: sw-resize; }
    .crop-corner.sw::before { bottom: 0; left: 0; width: 20px; height: 3px; }
    .crop-corner.sw::after { bottom: 0; left: 0; width: 3px; height: 20px; }
    
    .crop-corner.se { bottom: -3px; right: -3px; cursor: se-resize; }
    .crop-corner.se::before { bottom: 0; right: 0; width: 20px; height: 3px; }
    .crop-corner.se::after { bottom: 0; right: 0; width: 3px; height: 20px; }
    
    /* Edge handles */
    .crop-edge {
        position: absolute;
        background: transparent;
    }
    
    .crop-edge.n { top: -10px; left: 20px; right: 20px; height: 20px; cursor: n-resize; }
    .crop-edge.s { bottom: -10px; left: 20px; right: 20px; height: 20px; cursor: s-resize; }
    .crop-edge.w { left: -10px; top: 20px; bottom: 20px; width: 20px; cursor: w-resize; }
    .crop-edge.e { right: -10px; top: 20px; bottom: 20px; width: 20px; cursor: e-resize; }
    
    /* Crop dimensions tooltip */
    .crop-size-tooltip {
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.8);
        color: #fff;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.8rem;
        white-space: nowrap;
        pointer-events: none;
    }
    
    /* Bottom Toolbar */
    .editor-toolbar {
        background: rgba(0,0,0,0.9);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .toolbar-tools {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .tool-btn {
        background: rgba(255,255,255,0.1);
        border: none;
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 0.65rem;
    }
    
    .tool-btn i {
        font-size: 1.25rem;
    }
    
    .tool-btn:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.05);
    }
    
    .tool-btn.active {
        background: #25d366;
        color: #fff;
    }
    
    .tool-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .toolbar-divider {
        width: 1px;
        height: 40px;
        background: rgba(255,255,255,0.2);
        margin: 5px 8px;
    }
    
    /* Action buttons */
    .toolbar-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    
    .action-btn {
        padding: 12px 28px;
        border-radius: 24px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
    }
    
    .action-btn.primary {
        background: #25d366;
        color: #fff;
    }
    
    .action-btn.primary:hover {
        background: #20bd5a;
        transform: scale(1.03);
    }
    
    .action-btn.secondary {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }
    
    .action-btn.secondary:hover {
        background: rgba(255,255,255,0.25);
    }
    
    /* Crop mode specific actions */
    .crop-toolbar {
        display: none;
        justify-content: center;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .crop-toolbar.active {
        display: flex;
    }
    
    .aspect-btn {
        background: rgba(255,255,255,0.1);
        border: none;
        color: #fff;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .aspect-btn:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .aspect-btn.active {
        background: #25d366;
    }
    
    /* Preview card styles */
    .preview-card {
        display: none;
        margin-top: 1.5rem;
    }
    
    .preview-card.active {
        display: block;
    }
    
    .preview-image-container {
        position: relative;
        cursor: pointer;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.2s;
    }
    
    .preview-image-container:hover {
        transform: scale(1.01);
    }
    
    .preview-image-container:hover .edit-overlay {
        opacity: 1;
    }
    
    .preview-image {
        width: 100%;
        display: block;
        border-radius: 12px;
    }
    
    .edit-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        border-radius: 12px;
    }
    
    .edit-overlay span {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .dimension-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: #e9ecef;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .dimension-badge.correct {
        background: #d1e7dd;
        color: #0f5132;
    }
    
    .dimension-badge.incorrect {
        background: #f8d7da;
        color: #842029;
    }
    
    .action-buttons {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    /* Responsive adjustments */
    @media (max-width: 576px) {
        .tool-btn {
            width: 44px;
            height: 44px;
        }
        
        .tool-btn i {
            font-size: 1.1rem;
        }
        
        .tool-btn span {
            display: none;
        }
        
        .action-btn {
            padding: 10px 20px;
            font-size: 0.9rem;
        }
        
        .toolbar-divider {
            margin: 5px 4px;
        }
    }

/* Formulário implantação: bloco mais compacto dentro do card */
.rdim-verificacao-tool--compact .info-card {
    padding: 1rem;
    margin-bottom: 1rem;
}
.rdim-verificacao-tool--compact .rdim-spec-card-title {
    font-size: 0.95rem;
}
.rdim-verificacao-tool--compact .rdim-spec-card-lead,
.rdim-verificacao-tool--compact .rdim-spec-list {
    font-size: 0.8125rem;
}
.rdim-verificacao-tool--compact .rdim-doc-alert {
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}
.rdim-verificacao-tool--compact .rdim-doc-alert-icon {
    font-size: 1rem;
}
.rdim-verificacao-tool--compact .upload-area {
    padding: 1.5rem 1rem;
}
.rdim-verificacao-tool--compact .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.rdim-verificacao-tool--compact .rdim-upload-title {
    font-size: 0.95rem;
}
.rdim-verificacao-tool--compact .rdim-upload-sub {
    font-size: 0.8125rem;
}
