        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .stat-card {
            background: var(--light-gray);
            border-radius: 10px;
            padding: 0.8rem 1rem;
            text-align: center;
            border: 1px solid #e9ecef;
        }
        .stat-card .stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-muted);
        }
        .stat-card .stat-value {
            font-size: 1.2rem;
            font-weight: 600;
            color: #212529;
        }
        .stat-card .stat-value.ci-display {
            font-size: 1.2rem;
            color: var(--primary-color);
        }
        .result-interpretation {
            background: #f0f7ff;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            border-left: 5px solid var(--primary-color);
            margin: 1rem 0;
        }
        .correlation-badge {
            display: inline-block;
            padding: 0.2rem 0.9rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-left: 0.5rem;
        }
        .correlation-badge.strong-positive { background: #d4edda; color: #155724; }
        .correlation-badge.moderate-positive { background: #cce5ff; color: #004085; }
        .correlation-badge.weak-positive { background: #e2e3e5; color: #383d41; }
        .correlation-badge.negligible { background: #f8f9fa; color: #6c757d; }
        .correlation-badge.weak-negative { background: #fff3cd; color: #856404; }
        .correlation-badge.moderate-negative { background: #f8d7da; color: #721c24; }
        .correlation-badge.strong-negative { background: #f5c6cb; color: #721c24; }
        .data-table-wrap {
            max-height: 280px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin: 1rem 0;
        }
        .data-table-wrap thead th {
            position: sticky;
            top: 0;
            background: #f8f9fa;
            z-index: 2;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1.5rem;
        }
        .geometry-canvas {
            width: 100%;
            height: auto;
            background: #fafbfc;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            display: block;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 0.5rem 0 0.2rem;
            flex-wrap: wrap;
            font-size: 0.85rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: inline-block;
        }
        .legend-color.blue { background: #0d6efd; }
        .legend-color.red { background: #dc3545; }
        .legend-color.gray { background: #6c757d; } 
        .btn-import-csv { margin-bottom: 0.3rem; }
        .input-textarea-group textarea {
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            min-height: 90px;
        }
        @media (max-width: 576px) {
            .stat-grid { grid-template-columns: 1fr 1fr; }
        }