.color-preview-box {
            width: 100%;
            height: 120px;
            border-radius: 8px;
            border: 2px solid #eee;
            transition: background-color 0.2s;
            margin-bottom: 1rem;
        }
        .shade-swatch {
            border-radius: 6px;
            height: 60px;
            width: 100%;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s;
            border: 1px solid rgba(0,0,0,0.06);
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 4px;
            font-size: 0.7rem;
            font-family: 'Courier New', monospace;
            color: #fff;
            text-shadow: 0 1px 4px rgba(0,0,0,0.4);
        }
        .shade-swatch:hover {
            transform: scale(1.04);
            box-shadow: 0 4px 16px rgba(0,0,0,0.18);
            z-index: 10;
        }
        .shade-swatch .hex-label {
            background: rgba(0,0,0,0.5);
            padding: 1px 8px;
            border-radius: 10px;
            font-size: 0.65rem;
            letter-spacing: 0.3px;
            backdrop-filter: blur(2px);
        }
        .shade-swatch.light-text .hex-label {
            background: rgba(255,255,255,0.7);
            color: #222;
            text-shadow: none;
        }
        .shade-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 10px;
            margin: 1.5rem 0;
        }
        .color-info-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            margin: 0.5rem 0;
        }
        .color-info-row .label {
            font-weight: 600;
            min-width: 70px;
            color: var(--text-muted);
        }
        .color-info-row .value {
            font-family: 'Courier New', monospace;
            background: #f5f5f5;
            padding: 0.2rem 0.8rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .copy-toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: #1a1a2e;
            color: #fff;
            padding: 10px 28px;
            border-radius: 30px;
            font-size: 0.95rem;
            box-shadow: 0 6px 24px rgba(0,0,0,0.25);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        .copy-toast.show {
            opacity: 1;
        }
        .step-slider {
            width: 100%;
            max-width: 300px;
        }
        .step-value {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.2rem;
            min-width: 36px;
            display: inline-block;
            text-align: center;
        }
        .mode-selector .btn {
            border-radius: 20px;
            padding: 0.3rem 1.2rem;
            font-size: 0.85rem;
        }
        .mode-selector .btn.active-mode {
            background: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }
        .related-palette {
            background: #f8f9fc;
            border-radius: 10px;
            padding: 1.2rem;
            margin: 1.5rem 0;
        }
        .wcag-badge {
            display: inline-block;
            padding: 0.2rem 0.8rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-right: 6px;
        }
        .wcag-pass {
            background: #d4edda;
            color: #155724;
        }
        .wcag-fail {
            background: #f8d7da;
            color: #721c24;
        }
        .color-theory-card {
            background: #f0f4fa;
            border-radius: 10px;
            padding: 1.5rem;
            margin: 1.2rem 0;
            border-left: 4px solid var(--primary-color);
        }
        .harmony-swatch {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 4px;
            border: 2px solid rgba(0,0,0,0.08);
        }
        .example-btn .color-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: inline-block;
            border: 1px solid rgba(0,0,0,0.08);
        }
        .deep-dive p {
            text-align: justify;
        }
        .related-tools-container .related-tools-container @media (max-width: 576px) {
            .shade-grid {
                grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
                gap: 6px;
            }
            .shade-swatch {
                height: 48px;
                font-size: 0.55rem;
            }
        }