.property-table th,
        .property-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .result-value.kva {
            color: #dc3545;
        }
        .result-value.kw {
            color: #0d6efd;
        }
        .result-value.kvar {
            color: #9b59b6;
        }
        .result-value.pf {
            color: #28a745;
        }
        .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;
        }
        .power-canvas {
            width: 100%;
            min-height: 200px;
            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.purple {
            background-color: #9b59b6;
        }
        .legend-color.green {
            background-color: #28a745;
        }
        .pf-rating {
            font-weight: 600;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            display: inline-block;
        }
        .pf-excellent {
            background-color: #d4edda;
            color: #155724;
        }
        .pf-good {
            background-color: #cce5ff;
            color: #004085;
        }
        .pf-fair {
            background-color: #fff3cd;
            color: #856404;
        }
        .pf-poor {
            background-color: #f8d7da;
            color: #721c24;
        }
        .mode-selector {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .mode-btn {
            flex: 1;
            min-width: 120px;
            padding: 0.6rem 1rem;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
            font-weight: 500;
        }
        .mode-btn.active {
            border-color: var(--primary-color);
            background: rgba(70, 130, 180, 0.08);
            color: var(--primary-color);
        }
        .mode-btn:hover {
            background: #f1f3f5;
        }
        .result-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        .result-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            border: 1px solid #eee;
        }
        .result-card .label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6c757d;
        }
        .result-card .value {
            font-size: 1.6rem;
            font-weight: 700;
            margin: 0.2rem 0;
        }
        .result-card .value.kva {
            color: #dc3545;
        }
        .result-card .value.kw {
            color: #0d6efd;
        }
        .result-card .value.kvar {
            color: #9b59b6;
        }
        .result-card .value.pf {
            color: #28a745;
        }
        .result-card .sub {
            font-size: 0.8rem;
            color: #6c757d;
        }
        .slider-pf {
            width: 100%;
            accent-color: var(--primary-color);
        }
        .pf-display {
            font-weight: 600;
            font-size: 1.1rem;
        }
        .pf-note {
            font-size: 0.8rem;
            color: #6c757d;
            margin-top: 0.2rem;
        }
        @media (max-width: 768px) {
            .result-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .mode-btn {
                min-width: 80px;
                font-size: 0.85rem;
            }
        }