/* ===== COLOR PICKER - CalcTechLab ===== */

.clr-app {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== CARDS ===== */
.clr-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}
[data-bs-theme="dark"] .clr-card {
    background: #1e293b;
    border-color: #334155;
}
.clr-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.clr-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
[data-bs-theme="dark"] .clr-card-title {
    color: #f1f5f9;
}

.clr-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.clr-sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

/* ===== PICKER LAYOUT ===== */
.clr-picker-layout {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.clr-spectrum-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: crosshair;
}

.clr-spectrum {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 12px;
}

.clr-spectrum-cursor {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 10%;
    left: 90%;
    z-index: 2;
}

.clr-hue-wrap {
    position: relative;
    width: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.clr-hue-slider {
    width: 30px;
    height: 220px;
    display: block;
    border-radius: 10px;
}

.clr-hue-cursor {
    position: absolute;
    left: -3px;
    right: -3px;
    height: 8px;
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none;
    top: 0;
    z-index: 2;
}

.clr-preview-panel {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clr-preview-swatch {
    width: 100%;
    height: 100px;
    border-radius: 14px;
    background: #3B82F6;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.15s;
}

.clr-preview-hex {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 6px;
}

.clr-preview-actions {
    display: flex;
    gap: 0.35rem;
}

.clr-btn {
    flex: 1;
    height: 36px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-bs-theme="dark"] .clr-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
.clr-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.clr-btn-random:hover { border-color: #8b5cf6; color: #8b5cf6; }
.clr-btn-save:hover { border-color: #ef4444; color: #ef4444; }
.clr-btn-save.saved { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
[data-bs-theme="dark"] .clr-btn-save.saved { background: #450a0a; }

.clr-native-picker-wrap {
    text-align: center;
}

.clr-native-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
}

.clr-native-picker {
    width: 100%;
    height: 36px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: white;
}
[data-bs-theme="dark"] .clr-native-picker {
    background: #0f172a;
    border-color: #334155;
}

/* ===== COLOUR VALUES ===== */
.clr-values-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.clr-value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clr-value-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    width: 50px;
    flex-shrink: 0;
}

.clr-value-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.clr-value-hash {
    font-size: 0.9rem;
    font-weight: 800;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

.clr-value-input {
    padding: 0.5rem 0.6rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    min-width: 0;
    box-sizing: border-box;
}
[data-bs-theme="dark"] .clr-value-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
.clr-value-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.clr-hex-input {
    flex: 1;
    text-transform: uppercase;
}

.clr-rgb-row, .clr-cmyk-row {
    display: flex;
    gap: 0.35rem;
    flex: 1;
}

.clr-channel {
    flex: 1;
    min-width: 0;
}

.clr-channel label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 0.15rem;
}

.clr-channel-input {
    width: 100%;
    text-align: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.8rem;
}

.clr-copy-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .clr-copy-btn {
    background: #0f172a;
    border-color: #334155;
}
.clr-copy-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ===== HARMONIES ===== */
.clr-harmony-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}
.clr-harmony-tabs::-webkit-scrollbar { display: none; }

.clr-harmony-tab {
    padding: 0.45rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .clr-harmony-tab {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
.clr-harmony-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.clr-harmony-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.clr-harmony-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.clr-harmony-swatch {
    flex: 1;
    min-width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.35rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.clr-harmony-swatch:hover {
    transform: scale(1.05);
}

.clr-harmony-swatch-label {
    font-size: 0.55rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.2);
    padding: 1px 5px;
    border-radius: 4px;
}

.clr-harmony-wheel-wrap {
    display: flex;
    justify-content: center;
}

.clr-harmony-wheel-wrap canvas {
    width: 200px;
    height: 200px;
}

/* ===== TINTS & SHADES ===== */
.clr-tints-section {
    margin-bottom: 1.25rem;
}

.clr-tints-row, .clr-shades-row {
    display: flex;
    gap: 3px;
    border-radius: 12px;
    overflow: hidden;
}

.clr-tint-item, .clr-shade-item {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.25rem;
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
}
.clr-tint-item:hover, .clr-shade-item:hover {
    transform: scaleY(1.15);
    z-index: 2;
}

.clr-tint-label, .clr-shade-label {
    font-size: 0.45rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s;
}
.clr-tint-item:hover .clr-tint-label,
.clr-shade-item:hover .clr-shade-label {
    opacity: 1;
}

/* ===== CONTRAST CHECKER ===== */
.clr-contrast-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clr-contrast-inputs {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.clr-contrast-input-group {
    flex: 1;
    min-width: 0;
}

.clr-contrast-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clr-contrast-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .clr-contrast-swatch {
    border-color: #475569;
}

.clr-contrast-swap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-bottom: 0.15rem;
}
[data-bs-theme="dark"] .clr-contrast-swap {
    background: #0f172a;
    border-color: #334155;
}
.clr-contrast-swap:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.clr-contrast-preview {
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s;
}

.clr-contrast-preview-large {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.clr-contrast-preview-normal {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
}

.clr-contrast-results {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.clr-contrast-ratio {
    text-align: center;
    min-width: 80px;
}

.clr-contrast-ratio-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    line-height: 1;
}
[data-bs-theme="dark"] .clr-contrast-ratio-value {
    color: #f1f5f9;
}

.clr-contrast-ratio-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.clr-contrast-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex: 1;
}

.clr-contrast-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.clr-contrast-badge.pass {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}
[data-bs-theme="dark"] .clr-contrast-badge.pass {
    background: #052e16;
    border-color: #22c55e;
}

.clr-contrast-badge.fail {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}
[data-bs-theme="dark"] .clr-contrast-badge.fail {
    background: #450a0a;
    border-color: #ef4444;
}

/* ===== COLOUR BLINDNESS ===== */
.clr-blindness-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.clr-blindness-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
[data-bs-theme="dark"] .clr-blindness-item {
    background: #0f172a;
    border-color: #334155;
}

.clr-blindness-swatch {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.clr-blindness-name {
    font-size: 0.6rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}
[data-bs-theme="dark"] .clr-blindness-name {
    color: #f1f5f9;
}

.clr-blindness-hex {
    font-size: 0.5rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
}

.clr-blindness-pct {
    font-size: 0.5rem;
    color: #94a3b8;
    display: block;
}

/* ===== CSS CODE ===== */
.clr-css-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clr-css-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .clr-css-item {
    background: #0f172a;
    border-color: #334155;
}

.clr-css-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    width: 70px;
    flex-shrink: 0;
}

.clr-css-code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-bs-theme="dark"] .clr-css-code {
    color: #f1f5f9;
}

.clr-css-copy {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.clr-css-copy:hover {
    color: #3b82f6;
    background: #e2e8f0;
}
[data-bs-theme="dark"] .clr-css-copy:hover {
    background: #334155;
}

/* ===== GRADIENT ===== */
.clr-gradient-controls {
    margin-bottom: 1rem;
}

.clr-gradient-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.clr-gradient-input-group {
    flex: 1;
    min-width: 100px;
}

.clr-grad-select {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.clr-gradient-preview {
    width: 100%;
    height: 80px;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, #3B82F6, #8B5CF6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.clr-gradient-code-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .clr-gradient-code-wrap {
    background: #0f172a;
    border-color: #334155;
}

.clr-gradient-code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
[data-bs-theme="dark"] .clr-gradient-code {
    color: #f1f5f9;
}

.clr-gradient-copy {
    flex-shrink: 0;
}

/* ===== COLOUR NAME ===== */
.clr-name-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clr-name-swatch {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clr-name-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}
[data-bs-theme="dark"] .clr-name-value {
    color: #f1f5f9;
}

.clr-name-hex {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #64748b;
}

/* ===== SIDEBAR: INFO ===== */
.clr-info-card {
    border-top: 4px solid #3b82f6;
}

.clr-info-swatch-large {
    width: 100%;
    height: 80px;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: #3B82F6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: background 0.15s;
}

.clr-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.clr-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
}
[data-bs-theme="dark"] .clr-info-item {
    border-color: #1e293b;
}

.clr-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.clr-info-value {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
}
[data-bs-theme="dark"] .clr-info-value {
    color: #f1f5f9;
}

/* ===== SAVED COLOURS ===== */
.clr-saved-empty {
    text-align: center;
    padding: 1.25rem;
    color: #94a3b8;
}
.clr-saved-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}
.clr-saved-empty p {
    margin: 0;
    font-size: 0.8rem;
}

.clr-saved-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.clr-saved-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}
.clr-saved-item:hover {
    transform: scale(1.15);
    border-color: #3b82f6;
}

.clr-saved-item-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 0.5rem;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.clr-saved-item:hover .clr-saved-item-remove {
    display: flex;
}

.clr-clear-saved-btn {
    width: 100%;
    padding: 0.4rem;
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.clr-clear-saved-btn:hover {
    background: #fef2f2;
}
[data-bs-theme="dark"] .clr-clear-saved-btn:hover {
    background: #450a0a;
}

/* ===== POPULAR COLOURS ===== */
.clr-popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.clr-popular-btn {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: transparent;
    transition: all 0.2s;
}
.clr-popular-btn:hover {
    transform: scale(1.2);
    border-color: #3b82f6;
}

.clr-popular-btn span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* ===== TAILWIND PALETTE ===== */
.clr-tailwind-select-wrap {
    margin-bottom: 0.75rem;
}

.clr-tailwind-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
}

.clr-tailwind-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: transform 0.15s;
}
.clr-tailwind-item:hover {
    transform: scaleX(1.02);
}

.clr-tailwind-shade {
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.8;
}

.clr-tailwind-hex {
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}

/* ===== HISTORY ===== */
.clr-history-empty {
    text-align: center;
    padding: 1.25rem;
    color: #94a3b8;
}
.clr-history-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}
.clr-history-empty p {
    margin: 0;
    font-size: 0.8rem;
}

.clr-history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.clr-history-item {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.clr-history-item:hover {
    transform: scale(1.15);
    border-color: #3b82f6;
}

/* ===== SHARE ===== */
.clr-share-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.clr-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clr-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== FAQ ===== */
.clr-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clr-faq-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
[data-bs-theme="dark"] .clr-faq-item {
    background: #0f172a;
    border-color: #334155;
}

.clr-faq-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.4rem;
}
[data-bs-theme="dark"] .clr-faq-item h3 {
    color: #f1f5f9;
}

.clr-faq-item p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .clr-blindness-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .clr-card {
        padding: 1.25rem;
    }
    .clr-picker-layout {
        flex-direction: column;
    }
    .clr-hue-wrap {
        width: 100%;
        height: 30px;
    }
    .clr-hue-slider {
        width: 100%;
        height: 30px;
    }
    .clr-hue-cursor {
        left: 0;
        right: auto;
        top: -3px;
        bottom: -3px;
        width: 8px;
        height: auto;
    }
    .clr-spectrum {
        height: 180px;
    }
    .clr-preview-panel {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    .clr-preview-swatch {
        height: 60px;
        flex: 1;
    }
    .clr-preview-actions {
        flex-direction: column;
    }
    .clr-native-picker-wrap {
        flex: 1;
    }
    .clr-value-group {
        flex-direction: column;
        align-items: stretch;
    }
    .clr-value-label {
        width: auto;
        margin-bottom: 0.15rem;
    }
    .clr-contrast-inputs {
        flex-direction: column;
    }
    .clr-contrast-swap {
        align-self: center;
        transform: rotate(90deg);
    }
    .clr-blindness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clr-gradient-input-row {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .clr-blindness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clr-harmony-display {
        flex-wrap: wrap;
    }
    .clr-harmony-swatch {
        min-width: 50px;
    }
}
