/* ============================================================================
   UPLOAD DRAWER V2 - REDESIGNED ANALYSIS WORKFLOW
   Version: 2.0.0
   Date: 2024-12-01
   Description: Complete rewrite of upload drawer with per-document requirement
                selection, standard-aware terminology, and adaptive width.
   ============================================================================ */

/* CSS variables inherited from main.css — do not redefine :root tokens here */

/* ============================================================================
   DRAWER OVERLAY
   ============================================================================ */
.drawer-overlay-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    pointer-events: none;
}

.drawer-overlay-v2.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================================================
   UPLOAD DRAWER - ADAPTIVE WIDTH
   ============================================================================ */
.upload-drawer-v2 {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 95vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition-normal),
                width var(--transition-slow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.upload-drawer-v2.open {
    transform: translateX(0);
}

/* Expanded state for MDSAP & EU MDR */
.upload-drawer-v2.drawer-expanded {
    width: 680px;
}

/* ============================================================================
   DRAWER HEADER
   ============================================================================ */
.drawer-header-v2 {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex-shrink: 0;
}

.drawer-title-v2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.drawer-close-v2 {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.drawer-close-v2:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ============================================================================
   PROGRESS INDICATOR
   ============================================================================ */
.drawer-progress-v2 {
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.progress-steps-v2 {
    display: flex;
    gap: 8px;
}

.progress-step-v2 {
    flex: 1;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.progress-step-v2.active {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
    font-weight: 600;
}

.progress-step-v2.completed {
    background: transparent;
    color: var(--success-dark);
    border-color: var(--success);
}

/* ============================================================================
   DRAWER BODY
   ============================================================================ */
.drawer-body-v2 {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.drawer-body-v2::-webkit-scrollbar {
    width: 6px;
}

.drawer-body-v2::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.drawer-body-v2::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* Step Content */
.step-content-v2 {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}

.step-content-v2.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title-v2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.step-subtitle-v2 {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ============================================================================
   STEP 1: FILE UPLOAD
   ============================================================================ */
.upload-zone-v2 {
    border: 2px dashed var(--gray-200);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    background: white;
    transition: all var(--transition-fast);
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-zone-v2:hover,
.upload-zone-v2.dragover {
    border-color: var(--primary-500);
    background: var(--gray-50);
}

.upload-zone-icon-v2 {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.upload-zone-title-v2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.upload-zone-subtitle-v2 {
    font-size: 12px;
    color: var(--gray-400);
}

.upload-zone-subtitle-v2 a,
.upload-zone-subtitle-v2 .browse-text {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

/* Google Drive Import Button */
.drive-import-btn-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drive-import-btn-v2:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.drive-import-btn-v2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.drive-import-btn-v2 svg {
    flex-shrink: 0;
}

/* File List */
.file-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.file-item-v2:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.file-icon-v2 {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.file-info-v2 {
    flex: 1;
    min-width: 0;
}

.file-name-v2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Google Drive source icon in file name */
.file-source-icon-v2 {
    flex-shrink: 0;
    opacity: 0.9;
}

.file-meta-v2 {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-status-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
}

.file-status-v2.detecting {
    color: var(--primary-600);
}

.file-remove-v2 {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.file-remove-v2:hover {
    background: var(--error-light);
    color: var(--error);
}

/* ============================================================================
   STEP 2: CONFIGURATION - SIMPLE MODE
   ============================================================================ */
.config-simple-v2 {
    display: block;
}

.config-complex-v2 {
    display: none;
}

.upload-drawer-v2.drawer-expanded .config-simple-v2 {
    display: none;
}

.upload-drawer-v2.drawer-expanded .config-complex-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Groups */
.form-group-v2 {
    margin-bottom: 20px;
}

.form-label-v2 {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-select-v2 {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-family);
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-select-v2:hover {
    border-color: var(--gray-400);
}

.form-select-v2:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Document-Clause Mapping Section */
.document-mapping-v2 {
    margin-bottom: 20px;
    padding: 14px;
    background: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.document-mapping-header-v2 {
    margin-bottom: 12px;
}

.document-mapping-title-v2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-mapping-title-v2 svg {
    color: var(--primary-600);
}

.document-mapping-hint-v2 {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 4px;
}

.document-mapping-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-mapping-item-v2 {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
}

.document-mapping-item-header-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.doc-icon-small-v2 {
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    font-size: 9px;
    font-weight: 600;
    flex-shrink: 0;
}

.doc-name-small-v2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-clauses-row-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.clause-tag-v2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: transparent;
    color: var(--primary-600);
    border: 1px solid var(--primary-200);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

.clause-tag-v2.all-docs {
    background: transparent;
    color: var(--gray-500);
    border-color: var(--gray-300);
}

/* Edit button for document mapping */
.doc-edit-btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    min-height: 32px;
}

.doc-edit-btn-v2:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.doc-edit-btn-v2:hover .edit-count-badge-v2 {
    background: var(--primary-100);
    color: var(--primary-700);
}

.edit-count-badge-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

/* Source Indicator - Shows "Your selection" vs "AI detected" */
.source-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 8px;
    white-space: nowrap;
}

.source-indicator.user-override {
    background: transparent;
    color: var(--success-dark);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.source-indicator.ai-detected,
.source-indicator.ai-cached {
    background: transparent;
    color: var(--primary-600);
    border: 1px solid rgba(21, 96, 188, 0.3);
}

/* ============================================================================
   STEP 2: CONFIGURATION - COMPLEX MODE (MDSAP / EU MDR)
   ============================================================================ */
.config-column-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.config-column-v2:first-child {
    border-right: 1px solid var(--gray-200);
    padding-right: 20px;
}

.config-column-v2:last-child {
    padding-left: 0;
}

.column-header-v2 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

/* Complex Config Header with Change Link */
.complex-config-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.complex-config-title-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.complex-config-title-v2 h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.complex-config-title-v2 .standard-badge-v2 {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: transparent;
    color: var(--primary-700);
    border: 1px solid var(--primary-300);
    border-radius: 12px;
}

.change-standard-btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.change-standard-btn-v2:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.change-standard-btn-v2 svg {
    width: 14px;
    height: 14px;
}

/* Jurisdiction Selector (MDSAP) */
.jurisdiction-selector-v2 {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
}

.jurisdiction-selector-v2 h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.jurisdiction-selector-v2 p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.quick-select-btns-v2 {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.quick-btn-v2 {
    flex: 1;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-700);
}

.quick-btn-v2:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
    color: var(--primary-700);
}

.jurisdiction-grid-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jurisdiction-option-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.jurisdiction-option-v2:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.jurisdiction-option-v2.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.jurisdiction-option-v2 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-600);
    cursor: pointer;
}

.jurisdiction-flag-v2 {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.jurisdiction-info-v2 {
    flex: 1;
}

.jurisdiction-name-v2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

.jurisdiction-code-v2 {
    font-size: 11px;
    color: var(--gray-500);
    font-family: 'Courier New', monospace;
}

/* Chapter Selector (MDSAP) */
.chapter-selector-v2 {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
}

.chapter-selector-v2 h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.chapter-selector-v2 p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.chapter-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.chapter-item-v2 {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.chapter-header-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.chapter-header-v2:hover {
    background: var(--gray-50);
}

.chapter-header-v2 input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-600);
}

.chapter-title-v2 {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
}

.chapter-count-v2 {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 10px;
}

.chapter-count-v2.active {
    background: var(--primary-100);
    color: var(--primary-700);
}

.chapter-arrow-v2 {
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.chapter-item-v2.expanded .chapter-arrow-v2 {
    transform: rotate(180deg);
}

.task-list-v2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: var(--gray-50);
}

.chapter-item-v2.expanded .task-list-v2 {
    max-height: 300px;
}

.task-list-inner-v2 {
    padding: 8px 12px 12px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-option-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-700);
    cursor: pointer;
}

.task-option-v2:hover {
    color: var(--primary-600);
}

.task-option-v2 input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-600);
}

/* Device Class Selector (EU MDR) */
.device-class-selector-v2 {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
}

.device-class-selector-v2 h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.device-class-selector-v2 p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.device-class-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.device-class-option-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.device-class-option-v2:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.device-class-option-v2.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.device-class-option-v2 input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.device-class-label-v2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.device-class-label-v2 sub {
    font-size: 12px;
}

.device-class-desc-v2 {
    font-size: 10px;
    color: var(--gray-600);
    line-height: 1.4;
}

.device-class-risk-v2 {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.device-class-risk-v2.low { background: var(--success); }
.device-class-risk-v2.medium { background: var(--warning); }
.device-class-risk-v2.high { background: var(--error); }

/* Annex Selector (EU MDR) */
.annex-selector-v2 {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
}

.annex-selector-v2 h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.annex-selector-v2 p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.annex-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.annex-option-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.annex-option-v2:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.annex-option-v2.selected {
    background: var(--primary-50);
    border-color: var(--primary-500);
}

.annex-option-v2 input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-600);
}

.annex-option-v2 label {
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
    flex: 1;
}

/* ============================================================================
   STEP 3: PROCESSING
   ============================================================================ */
.processing-container-v2 {
    text-align: center;
    padding: 40px 0;
}

.processing-spinner-v2 {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Button spinner for classification loading state */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

.processing-title-v2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.processing-subtitle-v2 {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Progress Bar */
.progress-bar-container-v2 {
    background: var(--gray-200);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill-v2 {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    border-radius: 8px;
    transition: width var(--transition-normal);
}

.progress-text-v2 {
    font-size: 13px;
    color: var(--gray-600);
}

.btn-cancel-v2 {
    margin-top: 16px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cancel-v2:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Step 4 (Results) CSS removed - drawer now redirects directly to validation page */

/* ============================================================================
   DRAWER FOOTER
   ============================================================================ */
.drawer-footer-v2 {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: white;
    flex-shrink: 0;
}

.drawer-footer-v2 .btn-back-v2 {
    padding: 10px 20px;
    background: white;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-footer-v2 .btn-back-v2:hover {
    background: var(--gray-50);
}

.drawer-footer-v2 .btn-continue-v2 {
    flex: 1;
    padding: 10px 24px;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-footer-v2 .btn-continue-v2:hover {
    background: var(--primary-700);
}

.drawer-footer-v2 .btn-continue-v2:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

/* Keep primary color during classification so spinner is visible */
/* Must override :disabled style which uses var(--gray-300) */
.drawer-footer-v2 .btn-continue-v2.classifying,
.drawer-footer-v2 .btn-continue-v2.classifying:disabled {
    background: var(--primary-600) !important;
    cursor: wait;
}

/* ============================================================================
   REQUIREMENTS SELECTION MODAL
   ============================================================================ */
.modal-overlay-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000002; /* Must sit above Driver.js overlay (~1000000000) for tour interaction */
}

.modal-overlay-v2.visible {
    display: flex;
}

.modal-content-v2 {
    background: white;
    border-radius: 12px;
    width: 480px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header-v2 {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-v2 h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-header-v2 .doc-name-v2 {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

.modal-close-v2 {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-v2:hover {
    background: var(--gray-200);
}

/* ============================================================================
   MODAL SEARCH BAR
   ============================================================================ */
.modal-search-v2 {
    padding: 12px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.search-input-wrapper-v2 {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-v2 {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 1;
}

.search-input-v2 {
    width: 100%;
    padding: 10px 40px 10px 40px; /* Space for icon + clear button */
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    background: white;
    transition: all var(--transition-fast);
}

.search-input-v2:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-input-v2::placeholder {
    color: var(--gray-400);
}

.search-clear-v2 {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1;
}

.search-clear-v2:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.search-results-count-v2 {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-results-count-v2 strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Highlighted search matches */
.modal-item-v2 mark {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gray-900);
    font-weight: 500;
    padding: 0 2px;
    border-radius: 2px;
}

.modal-body-v2 {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-section-v2 {
    margin-bottom: 20px;
}

.modal-section-v2:last-child {
    margin-bottom: 0;
}

.modal-section-title-v2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.modal-item-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-item-v2:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.modal-item-v2.selected {
    background: var(--primary-50);
    border-color: var(--primary-400);
}

.modal-item-v2 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-600);
    flex-shrink: 0;
}

.modal-item-info-v2 {
    flex: 1;
}

.modal-item-name-v2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-item-desc-v2 {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

.modal-footer-v2 {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn-v2 {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-btn-secondary-v2 {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.modal-btn-secondary-v2:hover {
    background: var(--gray-50);
}

.modal-btn-primary-v2 {
    background: var(--primary-600);
    border: none;
    color: white;
}

.modal-btn-primary-v2:hover {
    background: var(--primary-700);
}

.modal-btn-reset-v2 {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    color: var(--warning-dark);
    margin-right: auto;
}

.modal-btn-reset-v2:hover {
    background: var(--warning);
    color: white;
}

/* ============================================================================
   SMART RECOMMENDATIONS SECTIONS
   ============================================================================ */

/* Detected section - highlighted with blue accent */
.modal-section-detected {
    background: rgba(10, 124, 255, 0.04);
    border-left: 3px solid var(--primary-500);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.modal-section-detected .modal-section-title-v2 {
    color: var(--primary-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-detected .modal-item-v2 {
    background: rgba(10, 124, 255, 0.06);
    border: 1px solid var(--primary-200);
}

.modal-section-detected .modal-item-v2:hover {
    background: rgba(10, 124, 255, 0.1);
}

/* Related section - subtle green accent */
.modal-section-related {
    background: rgba(16, 185, 129, 0.04);
    border-left: 3px solid var(--success);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.modal-section-related .modal-section-title-v2 {
    color: var(--success-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* All available section - neutral */
.modal-section-all {
    border-left: 3px solid var(--gray-300);
    border-radius: 8px;
    padding: 16px;
}

.modal-section-all .modal-section-title-v2 {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Collapsible section behavior */
.modal-section-all.collapsible .modal-section-title-v2 {
    cursor: pointer;
}

.modal-section-all.collapsible .modal-section-title-v2:hover {
    color: var(--gray-800);
}

.modal-section-all.collapsed .section-content {
    display: none;
}

.modal-section-all .collapse-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.modal-section-all.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Section icons */
.section-icon {
    font-size: 14px;
}

/* Confidence stars */
.confidence-stars {
    color: var(--warning);
    font-size: 11px;
    margin-left: 8px;
    letter-spacing: 1px;
}

/* Detected item highlight */
.modal-item-v2.detected {
    position: relative;
}

.modal-item-v2.detected::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-400);
    border-radius: 2px;
}

/* Scrollable section content */
.modal-section-all .section-content {
    max-height: 300px;
    overflow-y: auto;
}

/* ============================================================================
   CONFIRMATION DIALOG
   ============================================================================ */
.confirm-dialog-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.confirm-dialog-v2.visible {
    display: flex;
}

.confirm-dialog-content-v2 {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.confirm-dialog-icon-v2 {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
}

.confirm-dialog-title-v2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.confirm-dialog-message-v2 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.confirm-dialog-buttons-v2 {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-dialog-buttons-v2 button {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.confirm-btn-cancel-v2 {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.confirm-btn-cancel-v2:hover {
    background: var(--gray-50);
}

.confirm-btn-confirm-v2 {
    background: var(--warning);
    border: none;
    color: white;
}

.confirm-btn-confirm-v2:hover {
    background: var(--warning-dark);
}

/* ============================================================================
   SUCCESS TOAST
   ============================================================================ */
.success-toast-v2 {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: var(--gray-900);
    border-left: 3px solid var(--success);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.success-toast-v2.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================================================
   VALIDATION & FEEDBACK
   ============================================================================ */
.validation-message-v2 {
    display: none;
    padding: 10px 14px;
    margin-top: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--warning);
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray-600);
    align-items: center;
    gap: 8px;
}

.validation-message-v2.visible {
    display: flex;
}

.validation-message-v2 svg {
    flex-shrink: 0;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.hidden-v2 {
    display: none !important;
}

.sr-only-v2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    .upload-drawer-v2,
    .upload-drawer-v2.drawer-expanded {
        width: 100%;
        max-width: 100vw;
    }

    .upload-drawer-v2.drawer-expanded .config-complex-v2 {
        grid-template-columns: 1fr;
    }

    .config-column-v2:first-child {
        border-right: none;
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--gray-200);
    }

    .device-class-grid-v2 {
        grid-template-columns: 1fr;
    }

    .metrics-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .drawer-body-v2 {
        padding: 16px;
    }

    .drawer-header-v2 {
        padding: 16px;
    }

    .drawer-footer-v2 {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .drawer-footer-v2 .btn-back-v2,
    .drawer-footer-v2 .btn-continue-v2 {
        width: 100%;
    }

    .modal-content-v2 {
        width: 95vw;
        margin: 16px;
    }

    .modal-header-v2,
    .modal-body-v2,
    .modal-footer-v2 {
        padding: 16px;
    }

    .jurisdiction-flag-v2 {
        width: 24px;
        height: 18px;
    }

    .chapter-list-v2 {
        max-height: 200px;
    }

    .progress-step-v2 {
        padding: 8px 6px;
        font-size: 11px;
    }

    /* Full-width file items on mobile */
    .file-item-v2 {
        padding: 12px;
    }

    .file-name-v2 {
        font-size: 13px;
    }

    /* Edit button adapts on mobile */
    .doc-edit-btn-v2 {
        padding: 8px 10px;
        font-size: 10px;
    }

    /* Upload zone compact on mobile */
    .upload-zone-v2 {
        padding: 24px 16px;
    }

    .upload-zone-title-v2 {
        font-size: 14px;
    }

    .upload-zone-subtitle-v2 {
        font-size: 12px;
    }
}

/* ============================================================================
   REQUIREMENTS LOADING STATE
   ============================================================================ */
.requirements-loading-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-600);
}

.loading-spinner-small-v2 {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ============================================================================
   CLASSIFICATION METHOD SELECTOR (Tier-Gated Feature)
   ============================================================================ */
.classification-method-selector-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.classification-method-option-v2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.classification-method-option-v2:hover:not(.locked) {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.classification-method-option-v2.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.classification-method-option-v2.locked {
    opacity: 0.7;
    cursor: not-allowed;
}

.method-radio-v2 {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.classification-method-option-v2.selected .method-radio-v2 {
    border-color: var(--primary-500);
}

.method-radio-inner-v2 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.classification-method-option-v2.selected .method-radio-inner-v2 {
    background: var(--primary-500);
}

.method-content-v2 {
    flex: 1;
    min-width: 0;
}

.method-header-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.method-name-v2 {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.method-badge-v2 {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.method-badge-included-v2 {
    background: var(--success-light);
    color: var(--success);
}

.method-badge-pro-v2 {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
}

.method-description-v2 {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Lock Overlay for Tier-Gated Features */
.method-lock-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-lock-overlay-v2:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-600);
}

.method-lock-overlay-v2 svg {
    color: var(--gray-500);
}

.method-lock-overlay-v2:hover svg {
    color: var(--primary-600);
}

/* Classification method toggle CSS removed — elements no longer exist in HTML */

/* ============================================================================
   INLINE NOTIFICATION ANIMATIONS
   ============================================================================ */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDownFadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================================================
   ENHANCED MATURITY TOGGLE STYLES
   ============================================================================ */
.tier-badge-v2 {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: transparent;
    border: 1px solid;
    margin-left: 8px;
}

/* Admin badge variant */
.tier-badge-v2.badge-admin {
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.4);
}

.enhanced-maturity-toggle-v2 {
    position: relative;
    padding: 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-top: 8px;
}

.enhanced-maturity-toggle-v2.enabled {
    border-color: var(--gray-200);
    border-left: 3px solid var(--primary-500);
    background: white;
}

.toggle-container-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.toggle-switch-v2 {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch-v2 input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-v2 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider-v2:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-v2 input:checked + .toggle-slider-v2 {
    background-color: var(--primary-500);
}

.toggle-switch-v2 input:checked + .toggle-slider-v2:before {
    transform: translateX(20px);
}

.toggle-switch-v2 input:disabled + .toggle-slider-v2 {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label-v2 {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.toggle-label-v2.enabled {
    color: var(--primary-600);
}

.toggle-description-v2 {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
    margin: 0 0 8px;
}

.toggle-warning-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--warning-light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--warning-dark);
}

.toggle-warning-v2 svg {
    flex-shrink: 0;
    color: var(--warning);
}

.method-lock-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 16px;
}

.method-lock-overlay-v2:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-600);
}

/* ============================================================================
   ANALYSIS CACHE BADGE - "Previously analyzed" indicator
   Shows when a document has existing analysis results
   ============================================================================ */

.analysis-cache-badge {
    margin-top: 8px;
    padding: 0;
}

.analysis-cache-badge.hidden {
    display: none;
}

.analysis-cache-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-600);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.analysis-cache-indicator .cache-view-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.analysis-cache-indicator .cache-view-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* ============================================================================
   REDUCED MOTION PREFERENCES
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .upload-drawer-v2 {
        transition: none;
    }
    .modal-content-v2 {
        animation: none;
    }
    .processing-spinner-v2 {
        animation: none;
    }
    .toggle-slider-v2::before {
        transition: none;
    }
    .drawer-overlay-v2 {
        transition: none;
    }
    .confirm-dialog-v2,
    .modal-overlay-v2 {
        transition: none;
    }
}
