.color-preview {
            width: 100%;
            height: 120px;
            border-radius: 8px;
            border: 2px solid #e0e0e0;
            transition: background-color 0.2s;
            margin: 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Courier New', monospace;
            font-weight: 600;
            font-size: 1.2rem;
            color: rgba(0,0,0,0.7);
            text-shadow: 0 1px 4px rgba(255,255,255,0.5);
        }
        .color-preview.dark-text {
            color: rgba(255,255,255,0.8);
            text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        }
        .color-swatch-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0.5rem 0;
        }
        .color-swatch {
            width: 36px;
            height: 36px;
            border-radius: 4px;
            border: 1px solid #ddd;
            cursor: pointer;
            transition: transform 0.15s;
        }
        .color-swatch:hover {
            transform: scale(1.12);
        }
        .conversion-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem 2rem;
            margin: 1rem 0;
        }
        .conversion-item {
            display: flex;
            justify-content: space-between;
            padding: 0.4rem 0;
            border-bottom: 1px solid #f0f0f0;
        }
        .conversion-item .label {
            color: #666;
            font-weight: 500;
        }
        .conversion-item .value {
            font-family: 'Courier New', monospace;
            font-weight: 600;
            color: #222;
        }
        .property-table th,
        .property-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .gamut-warning {
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            margin: 0.5rem 0;
            display: none;
        }
        .input-group-custom {
            margin-bottom: 0.75rem;
        }
        .range-slider {
            width: 100%;
            margin-top: 0.25rem;
        }
        .range-slider::-webkit-slider-runnable-track {
            height: 6px;
            border-radius: 3px;
            background: #ddd;
        }
        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            margin-top: -5px;
        }
        .coord-input {
            margin-bottom: 0.5rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 0.5rem 0;
            font-size: 0.9rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
        }
        .legend-color.preview {
            border: 1px solid #ccc;
        }
        .deep-dive p {
            text-align: justify;
        }
        .unit-note {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .direction-toggle {
            display: flex;
            gap: 0.5rem;
            margin: 0.5rem 0;
        }
        .direction-toggle .btn {
            flex: 1;
        }
        .btn-outline-secondary.active {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }
        .color-wheel-hint {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3rem 0.8rem;
            background: #f8f9fa;
            border-radius: 20px;
            font-size: 0.85rem;
        }
        @media (max-width: 768px) {
            .conversion-grid {
                grid-template-columns: 1fr;
            }
        }