.property-table th,
        .property-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .deep-dive {
            margin: 1.8rem 0;
        }
        .deep-dive p {
            text-align: justify;
        }
        .unit-note {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .coord-input {
            margin-bottom: 0.5rem;
        }
        .geometry-canvas {
            width: 100%;
            height: auto;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            margin-top: 1.5rem;
            display: block;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 0.5rem 0;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
        }
        .legend-color.red {
            background-color: #dc3545;
        }
        .legend-color.blue {
            background-color: #0d6efd;
        }
        .legend-color.green {
            background-color: #28a745;
        }
        .legend-color.orange {
            background-color: #fd7e14;
        }
        .mode-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        .mode-tab {
            padding: 0.6rem 1.2rem;
            border: 2px solid transparent;
            border-radius: 30px;
            background: #f1f3f5;
            color: #495057;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
            font-size: 0.95rem;
        }
        .mode-tab:hover {
            background: #e9ecef;
        }
        .mode-tab.active {
            background: var(--primary-color, #0d6efd);
            color: #fff;
            border-color: var(--primary-color, #0d6efd);
        }
        .mode-tab i {
            margin-right: 0.4rem;
        }
        .mode-panel {
            display: none;
        }
        .mode-panel.active {
            display: block;
        }
        .factor-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0.5rem 0;
        }
        .factor-badge {
            background: rgba(13, 110, 253, 0.12);
            color: #0d6efd;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 1rem;
        }
        .factor-badge.pair {
            background: rgba(40, 167, 69, 0.12);
            color: #28a745;
        }
        .rainbow-container {
            position: relative;
            width: 100%;
            max-width: 700px;
            margin: 0 auto;
        }
        .divisibility-rule-list {
            columns: 2 240px;
            column-gap: 2rem;
            list-style: none;
            padding: 0;
        }
        .divisibility-rule-list li {
            padding: 0.4rem 0;
            border-bottom: 1px solid #f0f0f0;
            break-inside: avoid;
        }
        .divisibility-rule-list li strong {
            color: var(--primary-color);
        }
        .badge-prime {
            background: #28a745;
            color: #fff;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        .badge-composite {
            background: #fd7e14;
            color: #fff;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        .badge-special {
            background: #6f42c1;
            color: #fff;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        .spinner-small {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }