.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;
            cursor: crosshair;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
            position: relative;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 0.5rem 0;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            cursor: pointer;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            transition: background 0.2s;
        }
        .legend-item:hover {
            background: rgba(0,0,0,0.05);
        }
        .legend-item.hidden {
            opacity: 0.3;
            text-decoration: line-through;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .legend-color.primary { background-color: #0d6efd; }
        .legend-color.success { background-color: #198754; }
        .legend-color.warning { background-color: #ffc107; }
        .legend-color.danger { background-color: #dc3545; }
        .result-summary {
            background: #f8fafc;
            border-radius: 8px;
            padding: 1.2rem;
            border: 1px solid #e2e8f0;
        }
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
            margin-top: 0.5rem;
        }
        .summary-item {
            background: white;
            padding: 0.8rem 1rem;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
            text-align: center;
        }
        .summary-item .label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6c757d;
        }
        .summary-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #0d6efd;
            margin-top: 2px;
        }
        .summary-item .value.green { color: #198754; }
        .summary-item .value.orange { color: #fd7e14; }
        .summary-item .value.red { color: #dc3545; }
        .amortization-table {
            max-height: 320px;
            overflow-y: auto;
            font-size: 0.9rem;
        }
        .amortization-table table {
            width: 100%;
            border-collapse: collapse;
        }
        .amortization-table th {
            position: sticky;
            top: 0;
            background: #f1f3f5;
            z-index: 2;
            padding: 0.5rem 0.4rem;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .amortization-table td {
            padding: 0.4rem 0.4rem;
            border-bottom: 1px solid #f1f3f5;
            font-size: 0.85rem;
        }
        .amortization-table tr:nth-child(even) {
            background-color: #fafbfc;
        }
        .amortization-table .highlight-row {
            background-color: #e7f3ff !important;
            font-weight: 500;
        }
        .badge-pill {
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
        }
        .tool-header .lead {
            font-weight: 300;
            font-size: 1.2rem;
        }
        .input-group-text-custom {
            background: #f8f9fa;
            border-right: 0;
        }
        .input-group-custom .input-group-custom .form-control:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: none;
        }
        .input-group-custom .slider-range {
            width: 100%;
            margin: 0.2rem 0 0.6rem;
            accent-color: #0d6efd;
        }
        .slider-value {
            font-weight: 600;
            color: #0d6efd;
            font-size: 1rem;
        } 
        .chart-tooltip {
            position: absolute;
            display: none;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            pointer-events: none;
            z-index: 20;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .action-buttons .btn {
            margin-right: 0.5rem;
            margin-bottom: 0.25rem;
        }
        @media (max-width: 576px) {
            .summary-grid {
                grid-template-columns: 1fr 1fr;
            }
            .summary-item .value {
                font-size: 1.2rem;
            }
            .action-buttons .btn {
                font-size: 0.8rem;
                padding: 0.3rem 0.6rem;
            }
        }