.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.green { background-color: #28a745; }
        .legend-color.orange { background-color: #fd7e14; }
        .legend-color.purple { background-color: #6f42c1; }
        .legend-color.gray { background-color: #6c757d; }
        .mode-toggle {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        .mode-btn {
            padding: 0.5rem 1.2rem;
            border-radius: 20px;
            border: 2px solid var(--border-color);
            background: transparent;
            font-weight: 500;
            transition: all 0.2s;
        }
        .mode-btn.active {
            border-color: var(--primary-color);
            background: var(--primary-color);
            color: #fff;
        }
        .mode-btn:hover:not(.active) {
            border-color: var(--primary-color);
            background: rgba(70, 130, 180, 0.05);
        }
        .input-section {
            display: none;
        }
        .input-section.active {
            display: block;
        }
        .diagonal-result {
            font-size: 1.1rem;
            padding: 0.5rem 0;
        }
        .angle-display {
            display: inline-block;
            min-width: 120px;
        }