.stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .stat-card {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            border: 1px solid #e9ecef;
        }
        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .stat-label {
            font-size: 0.85rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .decile-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        .decile-table th, .decile-table td {
            padding: 0.65rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .decile-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .distribution-bar {
            background: #e2e8f0;
            border-radius: 8px;
            height: 12px;
            overflow: hidden;
            margin: 0.3rem 0;
        }
        .distribution-fill {
            background: var(--primary-color);
            height: 100%;
            border-radius: 8px;
            width: 0%;
        }
        .data-preview {
            max-height: 180px;
            overflow-y: auto;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 0.75rem;
            font-size: 0.85rem;
            font-family: monospace;
        }
        .axis-canvas {
            width: 100%;
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            margin-top: 1rem;
            height: 100px;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 0.5rem 0;
            font-size: 0.8rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            background: var(--primary-color);
            border-radius: 2px;
            display: inline-block;
        }
        .method-badge {
            background-color: #eef2ff;
            border-radius: 20px;
            padding: 0.25rem 0.75rem;
            font-size: 0.8rem;
            display: inline-block;
        }
        textarea {
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
        }
        .badge-method {
            font-size: 0.7rem;
            vertical-align: middle;
        }