.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: grab;
        }
        .geometry-canvas:active {
            cursor: grabbing;
        }
        .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%;
            display: inline-block;
        }
        .legend-color.green { background-color: #28a745; }
        .legend-color.red { background-color: #dc3545; }
        .legend-color.blue { background-color: #0d6efd; }
        .legend-color.orange { background-color: #fd7e14; }
        .legend-color.gray { background-color: #6c757d; }
        .legend-line {
            display: inline-block;
            width: 24px;
            height: 2px;
            border-radius: 1px;
        }
        .legend-line.green { background-color: #28a745; }
        .legend-line.dashed { background: repeating-linear-gradient(90deg, #fd7e14, #fd7e14 4px, transparent 4px, transparent 8px); }
        .unit-selector {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin: 0.5rem 0;
        }
        .unit-selector label {
            margin-right: 0.5rem;
            font-weight: 500;
        }
        .unit-selector .form-check {
            margin-right: 1rem;
        }
        .result-value-sm {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 1.3rem;
        }
        .badge-rot {
            font-size: 0.8rem;
            padding: 0.35rem 0.65rem;
        }
        .direction-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            background: #f0f7fa;
            font-weight: 500;
        }
        .direction-indicator .fa-arrow-right {
            color: #28a745;
        }
        .direction-indicator .fa-arrow-left {
            color: #dc3545;
        }
        .click-hint {
            font-size: 0.8rem;
            color: #6c757d;
            margin-top: 0.25rem;
        }
        @media (max-width: 576px) {
            .legend { gap: 0.8rem; font-size: 0.75rem; }
            }