.unit-toggle .btn-check:checked+.btn {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }
        .unit-toggle .btn {
            border-radius: 0;
        }
        .unit-toggle .btn:first-child {
            border-radius: 4px 0 0 4px;
        }
        .unit-toggle .btn:last-child {
            border-radius: 0 4px 4px 0;
        }
        .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-sm {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 1.4rem;
        }
        .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.blue {
            background-color: #0d6efd;
        }
        .legend-color.green {
            background-color: #28a745;
        }
        .legend-color.orange {
            background-color: #fd7e14;
        }
        .legend-color.purple {
            background-color: #6f42c1;
        }
        .legend-color.gray {
            background-color: #6c757d;
        }
        .cost-breakdown {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .cost-bar {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .cost-bar .label {
            width: 120px;
            font-weight: 500;
        }
        .cost-bar .bar {
            flex: 1;
            height: 24px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }
        .cost-bar .bar .fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        .cost-bar .amount {
            width: 100px;
            text-align: right;
            font-weight: 600;
        }
        .result-card {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1rem 0;
            border: 1px solid #e9ecef;
        }
        .result-card .total {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .result-card .sub-label {
            color: #6c757d;
            font-size: 0.9rem;
        }
        .input-group-prepend-custom {
            font-size: 0.85rem;
            background-color: #f8f9fa;
            border: 1px solid #ced4da;
            border-radius: 4px 0 0 4px;
            padding: 0.375rem 0.75rem;
            display: flex;
            align-items: center;
        }
        .preset-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 0.5rem;
            margin: 0.75rem 0;
        }
        .preset-btn {
            background-color: rgba(70, 130, 180, 0.08);
            border: 1px solid rgba(70, 130, 180, 0.15);
            border-radius: 6px;
            padding: 0.5rem 0.75rem;
            font-size: 0.85rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        .preset-btn:hover {
            background-color: rgba(70, 130, 180, 0.18);
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        .preset-btn .icon {
            display: block;
            font-size: 1.4rem;
            margin-bottom: 0.2rem;
        }
        .form-range-custom {
            width: 100%;
        }
        .range-value {
            font-weight: 600;
            color: var(--primary-color);
            min-width: 3rem;
            display: inline-block;
        }
        @media (max-width: 768px) {
            .cost-bar {
                flex-wrap: wrap;
            }
            .cost-bar .label {
                width: 100%;
            }
            .cost-bar .amount {
                width: auto;
            }
            .result-card .total {
                font-size: 1.6rem;
            }
        }