.equation-preview {
            background: rgba(70, 130, 180, 0.08);
            padding: 12px;
            border-radius: 8px;
            font-family: monospace;
            font-size: 1.2rem;
            text-align: center;
        }
        .step-table {
            max-height: 350px;
            overflow-y: auto;
            font-size: 0.85rem;
        }
        .step-table table {
            width: 100%;
            border-collapse: collapse;
        }
        .step-table th, .step-table td {
            padding: 6px 8px;
            border: 1px solid #dee2e6;
            text-align: center;
        }
        .step-table th {
            background-color: #f1f3f5;
            position: sticky;
            top: 0;
        }
        .method-canvas {
            width: 100%;
            background: #fefefe;
            border: 1px solid #ddd;
            border-radius: 12px;
            margin-top: 1rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 0.5rem 0;
            font-size: 0.85rem;
        }
        .legend-color {
            width: 18px;
            height: 18px;
            display: inline-block;
            border-radius: 50%;
            margin-right: 5px;
        }
        .legend-color.orange { background-color: #ff8c42; }
        .legend-color.blue { background-color: #1e88e5; }
        .legend-color.green { background-color: #2e7d32; }