.input-group-custom {
            margin-bottom: 1rem;
        }.chart-container{height:auto}
        .deep-dive {
            margin: 1.8rem 0;
        }
        .deep-dive p {
            text-align: justify;
        }
        .unit-note {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .data-table-wrap {
            max-height: 260px;
            overflow-y: auto;
            border: 1px solid #ddd;
            border-radius: 6px;
            margin: 0.75rem 0;
        }
        .data-table-wrap table {
            margin: 0;
            width: 100%;
            border-collapse: collapse;
        }
        .data-table-wrap th {
            background: #f1f3f5;
            position: sticky;
            top: 0;
            z-index: 2;
            padding: 0.5rem 0.5rem;
            border-bottom: 2px solid #ddd;
            font-size: 0.9rem;
        }
        .data-table-wrap td {
            padding: 0.35rem 0.5rem;
            vertical-align: middle;
            border-bottom: 1px solid #eee;
        }
        .data-table-wrap input[type="number"] {
            width: 100%;
            padding: 0.25rem 0.4rem;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        .data-table-wrap input[type="number"]:focus {
            border-color: var(--primary-color);
            outline: 0;
            box-shadow: 0 0 0 0.2rem rgba(70,130,180,0.15);
        }
        .btn-remove-row {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            padding: 0 0.25rem;
            font-size: 1.1rem;
            transition: 0.15s;
        }
        .btn-remove-row:hover {
            color: #a71d2a;
            transform: scale(1.1);
        }
        .chart-box {
            flex: 1 1 45%;
            min-width: 280px;
            background: #fafafa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            padding: 0.5rem;
            text-align: center;
        }
        .chart-box h6 {
            margin: 0.25rem 0 0.5rem 0;
            font-weight: 600;
            color: #343a40;
            font-size: 0.95rem;
        }
        .chart-box canvas {
            width: 100%;
            height: auto;
            background: white;
            border-radius: 4px;
            display: block;
            border: 1px solid #dee2e6;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
            gap: 0.75rem;
            margin: 1rem 0;
        }
        .stat-card {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 0.6rem 0.9rem;
            border: 1px solid #e9ecef;
            text-align: center;
        }
        .stat-card .stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6c757d;
        }
        .stat-card .stat-value {
            font-size: 1.3rem;
            font-weight: 600;
            color: #1a1a2e;
        }
        .regression-equation {
            font-family: 'Cambria Math', 'Latin Modern Math', serif;
            font-size: 1.3rem;
            padding: 0.75rem 1rem;
            background: rgba(70,130,180,0.07);
            border-radius: 6px;
            text-align: center;
            margin: 0.5rem 0;
        }
        .legend-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.2rem;
            font-size: 0.8rem;
            margin: 0.25rem 0 0.5rem 0;
        }
        .legend-grid .lg-item {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .legend-grid .lg-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 1px solid rgba(0,0,0,0.1);
        }
        .lg-dot.blue { background: #0d6efd; }
        .lg-dot.red { background: #dc3545; }
        .lg-dot.gray { background: #6c757d; }
        .lg-dot.green { background: #198754; }
        .lg-line {
            width: 24px;
            height: 2px;
            background: #0d6efd;
        }
        .lg-line.dashed { background: none; border-top: 2px dashed #6c757d; }
        .btn-sm-icon {
            padding: 0.2rem 0.6rem;
            font-size: 0.8rem;
        }
        .residual-panel .nav-pills #pasteData {
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
        }
        .paste-area {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 0.75rem 0.75rem 0.5rem 0.75rem;
            border: 1px solid #dee2e6;
            margin-bottom: 0.75rem;
        }
        @media (max-width: 576px) {
            .chart-box { flex: 1 1 100%; }
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .paste-area .d-flex { flex-wrap: wrap; }
            .paste-area .btn { width: 100%; margin-top: 0.5rem; }
        }