/* Utilix — Color Palette Generator (cpg-) */
:root {
    --cpg-accent: #ff4d8d;
    --cpg-accent-light: #ffe4ef;
    --cpg-accent-dark: #e11d48;
    --cpg-accent-border: #fda4af;
}

.cpg-hero { padding-bottom: 40px; }
.cpg-hero__grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.cpg-hero__main { display: flex; gap: 20px; align-items: flex-start; }
.cpg-hero__visual { display: flex; align-items: center; justify-content: center; min-height: 260px; }

.cpg-main { padding: 0 0 48px; }
.cpg-section-head { margin-bottom: 24px; }
.cpg-section-head h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.cpg-section-head p { margin: 0; font-size: .875rem; color: #64748b; }
.cpg-section-head--center { text-align: center; }
.cpg-section-head--center p { margin: 0 auto; max-width: 560px; }
.cpg-section-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .75rem; font-weight: 700; color: var(--cpg-accent); background: var(--cpg-accent-light); border-radius: 999px; margin-bottom: 12px; }
.cpg-section-eyebrow i { width: 14px; height: 14px; }

.cpg-mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.cpg-mode-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; background: #fff; border: 2px solid #e8ecf1; border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; font-family: inherit; }
.cpg-mode-btn__num { position: absolute; top: 8px; left: 10px; font-size: .5625rem; font-weight: 800; color: #94a3b8; }
.cpg-mode-btn:hover { border-color: var(--cpg-accent-border); box-shadow: 0 6px 20px rgba(255,77,141,.12); transform: translateY(-2px); }
.cpg-mode-btn.is-active { border-color: var(--cpg-accent); background: linear-gradient(180deg, #fff0f6 0%, #fff 100%); box-shadow: 0 4px 20px rgba(255,77,141,.15); }
.cpg-mode-btn__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-top: 4px; }
.cpg-mode-btn__icon i { width: 22px; height: 22px; }
.cpg-mode-btn strong { font-size: .6875rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.cpg-mode-btn span:last-child { font-size: .5625rem; color: #94a3b8; line-height: 1.35; }
.cpg-mode-btn--pink .cpg-mode-btn__icon { background: #ffe4ef; color: #ff4d8d; }
.cpg-mode-btn--blue .cpg-mode-btn__icon { background: #dbeafe; color: #2563eb; }
.cpg-mode-btn--green .cpg-mode-btn__icon { background: #d1fae5; color: #059669; }
.cpg-mode-btn--orange .cpg-mode-btn__icon { background: #ffedd5; color: #ea580c; }
.cpg-mode-btn--purple .cpg-mode-btn__icon { background: #ede9fe; color: #7c3aed; }
.cpg-mode-btn--red .cpg-mode-btn__icon { background: #fee2e2; color: #dc2626; }
.cpg-mode-btn--teal .cpg-mode-btn__icon { background: #ccfbf1; color: #0d9488; }
.cpg-mode-btn--yellow .cpg-mode-btn__icon { background: #fef9c3; color: #ca8a04; }
.cpg-mode-btn--cyan .cpg-mode-btn__icon { background: #cffafe; color: #0891b2; }
.cpg-mode-btn--indigo .cpg-mode-btn__icon { background: #e0e7ff; color: #4f46e5; }
.cpg-mode-grid--compact .cpg-mode-btn { padding: 12px 8px; }
.cpg-mode-grid--compact .cpg-mode-btn span:last-child { display: none; }

.cpg-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cpg-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.05); }
.cpg-card__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.cpg-mode-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; font-size: .6875rem; font-weight: 700; color: var(--cpg-accent-dark); background: var(--cpg-accent-light); border: 1px solid var(--cpg-accent-border); border-radius: 999px; }
.cpg-mode-desc { margin: 12px 0 16px; padding: 12px 14px; font-size: .8125rem; color: #be185d; background: var(--cpg-accent-light); border: 1px solid var(--cpg-accent-border); border-radius: 12px; }

.cpg-field { margin-bottom: 14px; }
.cpg-field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 700; color: var(--heading); }
.cpg-field select, .cpg-field input[type="text"], .cpg-field input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: .875rem; font-family: inherit; background: #fff; color: var(--text); }
.cpg-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cpg-color-input, .cpg-color-field { display: flex; gap: 10px; align-items: center; }
.cpg-color-input input[type="text"], .cpg-color-field input[type="text"] { flex: 1; font-family: ui-monospace, monospace; }
.cpg-color-input input[type="color"], .cpg-color-field input[type="color"] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff; }

.cpg-range-wrap { display: flex; align-items: center; gap: 12px; }
.cpg-range-wrap input[type="range"] { flex: 1; accent-color: var(--cpg-accent); }
.cpg-range-badge { padding: 4px 10px; font-size: .6875rem; font-weight: 700; color: var(--cpg-accent-dark); background: var(--cpg-accent-light); border: 1px solid var(--cpg-accent-border); border-radius: 999px; white-space: nowrap; }

.cpg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: none; border-radius: 12px; font-size: .875rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.cpg-btn i { width: 16px; height: 16px; }
.cpg-btn--primary { width: 100%; background: linear-gradient(135deg, #ff4d8d 0%, #f43f5e 100%); color: #fff; box-shadow: 0 4px 16px rgba(255,77,141,.35); }
.cpg-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,77,141,.45); }
.cpg-btn--outline { background: #fff; border: 1px solid var(--cpg-accent-border); color: var(--cpg-accent-dark); }
.cpg-btn--outline:hover { background: var(--cpg-accent-light); }
.cpg-btn--sm { padding: 8px 12px; font-size: .75rem; border-radius: 10px; }
.cpg-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.cpg-preview-card { position: sticky; top: 90px; }
.cpg-preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.cpg-preview-head h2 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; }
.cpg-preview-head p { margin: 0; font-size: .8125rem; color: #64748b; }
.cpg-preview-actions-top { display: flex; gap: 8px; flex-shrink: 0; }
.cpg-preview-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cpg-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding: 12px; background: var(--cpg-accent-light); border: 1px solid var(--cpg-accent-border); border-radius: 12px; }
.cpg-meta span { flex: 1; min-width: 100px; }
.cpg-meta small { display: block; font-size: .625rem; color: #94a3b8; margin-bottom: 2px; }
.cpg-meta strong { font-size: .75rem; font-family: ui-monospace, monospace; color: var(--cpg-accent-dark); }

.cpg-preview-box { min-height: 200px; border: 1px solid var(--border); border-radius: 16px; background: #f8fafc; overflow: hidden; }
.cpg-preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 200px; padding: 24px; color: #94a3b8; text-align: center; }
.cpg-preview-empty i { width: 40px; height: 40px; opacity: .5; }
.cpg-preview-output { padding: 0; }

.cpg-swatches { display: flex; min-height: 220px; border-radius: 16px; overflow: hidden; }
.cpg-swatch { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; cursor: pointer; transition: flex .25s; }
.cpg-swatch:hover { flex: 1.3; }
.cpg-swatch__body { flex: 1; }
.cpg-swatch__info { padding: 10px 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); font-size: .625rem; line-height: 1.5; }
.cpg-swatch__info strong { display: block; font-size: .6875rem; font-family: ui-monospace, monospace; color: #0f172a; }
.cpg-swatch__info span { display: block; color: #64748b; font-family: ui-monospace, monospace; }
.cpg-swatch__copy { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 6px; font-size: .5625rem; font-weight: 700; color: var(--cpg-accent-dark); background: var(--cpg-accent-light); border: none; border-radius: 6px; cursor: pointer; font-family: inherit; }

.cpg-gradient-preview { height: 120px; border-radius: 12px; margin: 16px; }
.cpg-gradient-code { margin: 0 16px 16px; padding: 12px; background: #0f172a; color: #e2e8f0; border-radius: 10px; font-size: .6875rem; font-family: ui-monospace, monospace; word-break: break-all; }

.cpg-contrast-preview { padding: 16px; }
.cpg-contrast-sample { padding: 24px; border-radius: 12px; margin-bottom: 16px; text-align: center; }
.cpg-contrast-sample h3 { margin: 0 0 8px; font-size: 1.25rem; }
.cpg-contrast-sample p { margin: 0; font-size: .875rem; }
.cpg-contrast-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cpg-contrast-stat { padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.cpg-contrast-stat small { display: block; font-size: .625rem; color: #94a3b8; margin-bottom: 4px; }
.cpg-contrast-stat strong { font-size: 1rem; }
.cpg-contrast-stat.is-pass strong { color: #059669; }
.cpg-contrast-stat.is-fail strong { color: #dc2626; }

.cpg-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.cpg-variations { padding: 48px 0; background: #f8fafc; }
.cpg-variation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cpg-variation-card { padding: 0; background: #fff; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .15s; font-family: inherit; text-align: left; }
.cpg-variation-card:hover { border-color: var(--cpg-accent-border); transform: translateY(-2px); }
.cpg-variation-card__strip { display: flex; height: 48px; }
.cpg-variation-card__strip span { flex: 1; }
.cpg-variation-card strong { display: block; padding: 10px 12px; font-size: .8125rem; }

.cpg-export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 48px; }
.cpg-export-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.cpg-export-card__icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--cpg-accent-light); color: var(--cpg-accent); flex-shrink: 0; }
.cpg-export-card__icon i { width: 20px; height: 20px; }
.cpg-export-card strong { display: block; font-size: .8125rem; margin-bottom: 2px; }
.cpg-export-card span { font-size: .6875rem; color: #64748b; }

.cpg-about { padding: 48px 0; }
.cpg-about__grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: center; }
.cpg-about__lead { font-size: .9375rem; color: #64748b; line-height: 1.7; margin-bottom: 16px; }
.cpg-about-points { list-style: none; padding: 0; margin: 0; }
.cpg-about-points li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .875rem; color: var(--text); }
.cpg-about-points i { width: 18px; height: 18px; color: var(--cpg-accent); flex-shrink: 0; margin-top: 2px; }
.cpg-about__illus { display: flex; justify-content: center; }
.cpg-about__wheel { position: relative; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(#ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); box-shadow: 0 12px 32px rgba(15,23,42,.12); }
.cpg-about__wheel::after { content: ''; position: absolute; inset: 30%; background: #fff; border-radius: 50%; }

.cpg-use { padding: 48px 0; }
.cpg-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cpg-use-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.cpg-use-card__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 12px; }
.cpg-use-card__icon i { width: 22px; height: 22px; }
.cpg-use-card__icon--pink { background: #ffe4ef; color: #ff4d8d; }
.cpg-use-card__icon--blue { background: #dbeafe; color: #2563eb; }
.cpg-use-card__icon--green { background: #d1fae5; color: #059669; }
.cpg-use-card__icon--orange { background: #ffedd5; color: #ea580c; }
.cpg-use-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.cpg-use-card__icon--teal { background: #ccfbf1; color: #0d9488; }
.cpg-use-card strong { display: block; margin-bottom: 6px; font-size: .875rem; }
.cpg-use-card p { margin: 0; font-size: .8125rem; color: #64748b; line-height: 1.5; }

.cpg-info__grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 48px 0; }
.cpg-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.cpg-about-feature { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.cpg-about-feature__icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0; }
.cpg-about-feature__icon i { width: 18px; height: 18px; }
.cpg-about-feature__icon--pink { background: #ffe4ef; color: #ff4d8d; }
.cpg-about-feature__icon--blue { background: #dbeafe; color: #2563eb; }
.cpg-about-feature__icon--green { background: #d1fae5; color: #059669; }
.cpg-about-feature__icon--orange { background: #ffedd5; color: #ea580c; }
.cpg-about-feature__icon--purple { background: #ede9fe; color: #7c3aed; }
.cpg-about-feature__icon--cyan { background: #cffafe; color: #0891b2; }
.cpg-about-feature strong { display: block; font-size: .8125rem; margin-bottom: 4px; }
.cpg-about-feature p { margin: 0; font-size: .75rem; color: #64748b; line-height: 1.45; }

.cpg-side-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; }
.cpg-side-card--tips { background: linear-gradient(180deg, #fff0f6 0%, #fff 100%); }
.cpg-side-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; font-weight: 700; }
.cpg-side-card__title i { width: 18px; height: 18px; color: var(--cpg-accent); }
.cpg-tips-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cpg-tips-head__icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--cpg-accent-light); color: var(--cpg-accent); border-radius: 10px; }
.cpg-tips-head h3 { margin: 0; font-size: .9375rem; }
.cpg-tips-list { list-style: none; padding: 0; margin: 0; }
.cpg-tips-list li { display: flex; gap: 10px; padding: 8px 0; font-size: .8125rem; color: #64748b; line-height: 1.5; border-bottom: 1px solid var(--border); }
.cpg-tips-list li:last-child { border-bottom: none; }
.cpg-tips-list__check { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: #d1fae5; color: #059669; border-radius: 50%; flex-shrink: 0; }
.cpg-tips-list__check i { width: 12px; height: 12px; }
.cpg-tools-list { list-style: none; padding: 0; margin: 0; }
.cpg-tools-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .8125rem; font-weight: 600; transition: background .15s; }
.cpg-tools-link:hover { background: #f1f5f9; }
.cpg-tools-link.is-current { background: var(--cpg-accent-light); color: var(--cpg-accent-dark); }
.cpg-tools-link__icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 8px; }
.cpg-tools-link__icon i { width: 16px; height: 16px; }
.cpg-tools-link span:nth-child(2) { flex: 1; }
.cpg-tools-link > i:last-child { width: 14px; height: 14px; color: #94a3b8; }
.cpg-view-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8125rem; font-weight: 700; color: var(--cpg-accent); text-decoration: none; }

.cpg-steps-section { padding: 48px 0; background: #f8fafc; }
.cpg-steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cpg-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cpg-step { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.cpg-step__num { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--cpg-accent); color: #fff; border-radius: 50%; font-weight: 800; flex-shrink: 0; }
.cpg-step strong { display: block; margin-bottom: 4px; font-size: .875rem; }
.cpg-step p { margin: 0; font-size: .8125rem; color: #64748b; }

.cpg-toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; background: #1e293b; color: #fff; border-radius: 10px; font-size: .8125rem; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; z-index: 9999; }
.cpg-toast.is-visible { opacity: 1; transform: translateY(0); }
.cpg-animate-in { animation: cpg-fade-up .5s ease both; }
.cpg-animate-in--delay { animation-delay: .08s; }
@keyframes cpg-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.cpg-hero__demo { position: relative; width: 100%; max-width: 380px; height: 260px; margin: 0 auto; }
.cpg-hero__wheel { position: absolute; top: 20px; left: 20px; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(#ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); box-shadow: 0 12px 32px rgba(15,23,42,.12); animation: cpg-spin 20s linear infinite; }
.cpg-hero__wheel-inner { position: absolute; inset: 22%; background: #fff; border-radius: 50%; }
.cpg-hero__wheel-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ff4d8d; }
.cpg-hero__wheel-icon i { width: 28px; height: 28px; }
.cpg-hero__swatches { position: absolute; top: 30px; right: 0; width: 200px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.1); display: flex; flex-direction: column; gap: 8px; }
.cpg-hero__swatches span { display: block; height: 28px; border-radius: 8px; background: var(--cpg-swatch); }
.cpg-hero__window { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 240px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.1); z-index: 2; }
.cpg-hero__swatches { display: flex; height: 56px; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.cpg-hero__swatches span { flex: 1; }
.cpg-hero__codes { display: flex; flex-wrap: wrap; gap: 4px; }
.cpg-hero__codes code { font-size: .5625rem; color: #64748b; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.cpg-hero__wheel-sm { position: absolute; bottom: 30px; left: 20px; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); animation: cpg-spin 12s linear infinite; }
.cpg-hero__brush { position: absolute; bottom: 40px; right: 24px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: #ffe4ef; color: #ff4d8d; border-radius: 14px; animation: cpg-float 4s ease-in-out infinite; }
.cpg-hero__brush i { width: 26px; height: 26px; }
@keyframes cpg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cpg-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
    .cpg-hero__grid, .cpg-workspace, .cpg-about__grid, .cpg-info__grid, .cpg-steps-layout { grid-template-columns: 1fr; }
    .cpg-hero__visual { display: none; }
    .cpg-mode-grid, .cpg-mode-grid--compact { grid-template-columns: repeat(3, 1fr); }
    .cpg-preview-card { position: static; }
    .cpg-use-grid, .cpg-variation-grid { grid-template-columns: repeat(2, 1fr); }
    .cpg-export-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cpg-mode-grid, .cpg-mode-grid--compact { grid-template-columns: repeat(2, 1fr); }
    .cpg-field-row, .cpg-about-features, .cpg-use-grid, .cpg-variation-grid, .cpg-export-grid, .cpg-contrast-stats { grid-template-columns: 1fr; }
    .cpg-swatches { flex-direction: column; min-height: auto; }
    .cpg-swatch { min-height: 80px; }
    .cpg-preview-actions-top { flex-direction: column; }
}

[data-theme="dark"] .cpg-card, [data-theme="dark"] .cpg-mode-btn, [data-theme="dark"] .cpg-step, [data-theme="dark"] .cpg-side-card, [data-theme="dark"] .cpg-about-feature, [data-theme="dark"] .cpg-use-card, [data-theme="dark"] .cpg-variation-card, [data-theme="dark"] .cpg-export-card, [data-theme="dark"] .cpg-contrast-stat { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .cpg-mode-btn.is-active { background: linear-gradient(180deg, rgba(255,77,141,.12) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .cpg-field select, [data-theme="dark"] .cpg-field input[type="text"], [data-theme="dark"] .cpg-field input[type="number"] { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .cpg-mode-desc { background: rgba(255,77,141,.1); border-color: rgba(253,164,175,.3); color: #fda4af; }
[data-theme="dark"] .cpg-preview-box { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .cpg-btn--outline { background: #1a2332; border-color: rgba(253,164,175,.3); color: #fda4af; }
[data-theme="dark"] .cpg-variations, [data-theme="dark"] .cpg-steps-section { background: rgba(255,77,141,.04); }
[data-theme="dark"] .cpg-tools-link.is-current { background: rgba(255,77,141,.12); color: #fda4af; }
[data-theme="dark"] .cpg-side-card--tips { background: linear-gradient(180deg, rgba(255,77,141,.08) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .cpg-hero__window { background: var(--bg-section); }
[data-theme="dark"] .cpg-hero__swatches { background: var(--bg-section); }
[data-theme="dark"] .cpg-hero__wheel-inner { background: var(--bg-section); }
[data-theme="dark"] .cpg-section-head p { color: #94a3b8; }
[data-theme="dark"] .cpg-mode-btn { background: var(--bg-section); }
[data-theme="dark"] .cpg-card { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
[data-theme="dark"] .cpg-swatch__info { background: rgba(15,23,42,.9); }
[data-theme="dark"] .cpg-swatch__info strong { color: #f1f5f9; }
[data-theme="dark"] .cpg-swatch__info span { color: #94a3b8; }
[data-theme="dark"] .cpg-about__wheel::after { background: var(--bg-section); }
[data-theme="dark"] .cpg-meta { background: rgba(255,77,141,.08); border-color: rgba(253,164,175,.25); }
[data-theme="dark"] .cpg-gradient-code { background: #0f172a; }
