@import url('https://api.fontshare.com/v2/css?f[]=chillax@300,400,500,600,700&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --font-display: 'Chillax', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.25s ease;
}

/* LIGHT MODE */
body.light {
  --bg-primary: #FAFAF8;
  --bg-secondary: #F2F0ED;
  --bg-card: #FFFFFF;
  --text-primary: #0F0F0F;
  --text-secondary: #5a5a5a;
  --text-muted: #9a9a9a;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #6e267d;
  --accent-light: rgba(110, 38, 125, 0.08);
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* DARK MODE */
body.dark {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1a1a1a;
  --bg-card: #1f1f1f;
  --text-primary: #F5F5F3;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #b05ec0;
  --accent-light: rgba(176, 94, 192, 0.12);
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* ─── HERO ─── */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 480px;
  line-height: 1.6;
}

/* ─── SECTIONS ─── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* ─── COLOR CONTROLS ─── */
.color-controls {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}

input[type="text"], input[type="text"]:focus {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 90px;
}

select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

select:hover, select:focus {
  border-color: var(--accent);
}

.btn-generate {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-generate:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ─── PALETTE CARDS ─── */
.palette-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.palette-card {
  flex: 1;
  min-width: 100px;
  height: 120px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}

.palette-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.palette-card .hex-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  width: fit-content;
}

.copy-hint {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: var(--transition);
}

.palette-card:hover .copy-hint {
  opacity: 1;
}

/* ─── MOOD TAG ─── */
.mood-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  margin-top: 0.5rem;
}

/* ─── FONT PAIRINGS ─── */
.font-pairings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 2.5rem;
}

.pairing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.pairing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.pairing-card.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.pairing-display {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.pairing-body-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.pairing-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── PREVIEW AREA ─── */
.preview-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.preview-controls label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.preview-controls input[type="text"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
  width: auto;
}

.preview-controls input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.preview-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.preview-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 65ch;
}

/* ─── EXPORT ─── */
.export-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-export {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-export:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.export-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  min-height: 60px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ─── FOOTER ─── */
.site-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    /* HEADER */
    .header-inner {
      padding: 0.85rem 1.25rem;
    }
  
    /* HERO */
    .hero {
      padding: 3rem 1.25rem 2rem;
    }
  
    .hero-title {
      font-size: 2.4rem;
    }
  
    .hero-sub {
      font-size: 1rem;
    }
  
    /* SECTIONS */
    .section {
      padding: 2.5rem 1.25rem;
    }
  
    .section-title {
      font-size: 1.4rem;
      margin-bottom: 1.25rem;
    }
  
    /* COLOR CONTROLS */
    .color-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
    }
  
    .control-group {
      width: 100%;
    }
  
    .color-input-wrap {
      width: 100%;
    }
  
    select {
      width: 100%;
    }
  
    .generate-actions {
      flex-direction: column;
      width: 100%;
    }
  
    .btn-generate,
    .btn-random,
    .btn-save {
      width: 100%;
      text-align: center;
      justify-content: center;
    }
  
    /* PALETTE CARDS */
    .palette-cards {
      gap: 8px;
    }
  
    .palette-card {
      min-width: 60px;
      height: 90px;
    }
  
    /* TINTS & SHADES */
    .ts-label {
      width: 48px;
      font-size: 0.65rem;
    }
  
    .ts-swatch {
      height: 22px;
    }
  
    /* CONTRAST CHECKER */
    .contrast-grid {
      flex-direction: column;
    }
  
    .contrast-pair {
      min-width: unset;
      width: 100%;
    }
  
    /* FONT PAIRINGS */
    .font-pairings {
      grid-template-columns: 1fr;
    }
  
    /* PREVIEW AREA */
    .preview-area {
      padding: 1.25rem;
    }
  
    .preview-controls {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .preview-controls input[type="text"] {
      width: 100%;
    }
  
    .preview-heading {
      font-size: 1.5rem;
    }
  
    .preview-body {
      font-size: 0.95rem;
    }
  
    /* EXPORT */
    .export-actions {
      flex-direction: column;
    }
  
    .btn-export {
      width: 100%;
      text-align: center;
    }
  
    /* SAVED PALETTES */
    .saved-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
  
    .saved-swatches {
      width: 100%;
    }
  
    .saved-swatch {
      flex: 1;
      width: auto;
    }
  
    .saved-actions {
      width: 100%;
    }
  
    .btn-saved-load,
    .btn-saved-delete {
      flex: 1;
      text-align: center;
      padding: 8px;
    }
  
    /* PICKER PANEL */
    .picker-panel {
      width: calc(100vw - 2.5rem);
      max-width: 320px;
    }
  
    /* TOAST */
    .toast {
      bottom: 1.25rem;
      width: calc(100% - 2.5rem);
      text-align: center;
    }
  
    /* FOOTER */
    .site-footer {
      padding: 1.5rem 1.25rem;
    }
  }

/* ─── GENERATE ACTIONS ─── */
.generate-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .btn-random {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
  }
  
  .btn-random:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
  }

  /* ─── ANIMATIONS ─── */
@keyframes fadeSlideUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes popIn {
    0% { transform: scale(0.92); opacity: 0; }
    60% { transform: scale(1.03); }
    100% { transform: scale(1); opacity: 1; }
  }
  
  .palette-card {
    animation: popIn 0.35s ease forwards;
  }
  
  .pairing-card {
    animation: fadeSlideUp 0.4s ease forwards;
  }
  
  .mood-tag {
    animation: fadeSlideUp 0.5s ease forwards;
  }

  /* ─── TOAST ─── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999;
    white-space: nowrap;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* ─── TINTS & SHADES ─── */
.tints-shades {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.25rem;
  }
  
  .ts-row {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  
  .ts-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 60px;
    flex-shrink: 0;
    font-family: var(--font-body);
  }
  
  .ts-swatch {
    flex: 1;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
  }
  
  .ts-swatch:hover {
    transform: scaleY(1.3);
    z-index: 1;
  }

  /* ─── CONTRAST CHECKER ─── */
.contrast-checker {
    margin-bottom: 1.25rem;
  }
  
  .contrast-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }
  
  .contrast-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .contrast-pair {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex: 1;
  }
  
  .contrast-swatch-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .contrast-swatch-bg {
    width: 100%;
    height: 100%;
  }
  
  .contrast-swatch-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
  }
  
  .contrast-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .contrast-ratio {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .contrast-badges {
    display: flex;
    gap: 5px;
  }
  
  .badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  .badge.pass {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
  }
  
  .badge.fail {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
  }
  
  body.dark .badge.pass {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
  }
  
  body.dark .badge.fail {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
  }

  /* ─── SAVE BUTTON ─── */
.btn-save {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
  }
  
  .btn-save:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
  }
  
  /* ─── SAVED PALETTES ─── */
  .saved-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 1.5rem 0;
  }
  
  .saved-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .saved-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeSlideUp 0.3s ease forwards;
  }
  
  .saved-swatches {
    display: flex;
    gap: 6px;
    flex: 1;
  }
  
  .saved-swatch {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .saved-swatch:hover {
    transform: scale(1.15);
  }
  
  .saved-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
  }
  
  .saved-mood {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .saved-fonts {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .saved-actions {
    display: flex;
    gap: 8px;
  }
  
  .btn-saved-load {
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
  }
  
  .btn-saved-load:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  
  .btn-saved-delete {
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
  }
  
  .btn-saved-delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
  }

  /* ─── COLOR PREVIEW SWATCH ─── */
.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
    background: #6e267d;
    transition: var(--transition);
    flex-shrink: 0;
  }
  
  .color-preview:hover {
    transform: scale(1.1);
    border-color: var(--accent);
  }
  
  /* ─── PICKER OVERLAY ─── */
  .picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
  }
  
  .picker-overlay.open {
    display: flex;
  }
  
  .picker-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .picker-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .picker-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition);
  }
  
  .picker-close:hover {
    border-color: #ef4444;
    color: #ef4444;
  }
  
  /* ─── GRADIENT CANVAS ─── */
  .picker-gradient {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: crosshair;
    background: hsl(285, 100%, 50%);
  }
  
  .picker-gradient-white {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff, transparent);
  }
  
  .picker-gradient-black {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, #000);
  }
  
  .picker-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    top: 20%;
    left: 80%;
  }
  
  /* ─── HUE SLIDER ─── */
  .picker-hue-wrap {
    width: 100%;
  }
  
  .picker-hue {
    width: 100%;
    height: 14px;
    border-radius: 50px;
    outline: none;
    border: none;
    cursor: pointer;
    appearance: none;
    background: linear-gradient(to right,
      hsl(0,100%,50%), hsl(30,100%,50%), hsl(60,100%,50%),
      hsl(90,100%,50%), hsl(120,100%,50%), hsl(150,100%,50%),
      hsl(180,100%,50%), hsl(210,100%,50%), hsl(240,100%,50%),
      hsl(270,100%,50%), hsl(300,100%,50%), hsl(330,100%,50%),
      hsl(360,100%,50%)
    );
  }
  
  .picker-hue::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
  }
  
  /* ─── HEX ROW ─── */
  .picker-hex-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .picker-hex-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  
  .picker-hex-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    width: auto;
  }
  
  .picker-hex-input:focus {
    border-color: var(--accent);
  }
  
  .picker-current {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #6e267d;
    flex-shrink: 0;
  }
  
  /* ─── APPLY BUTTON ─── */
  .picker-apply {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
  }
  
  .picker-apply:hover {
    opacity: 0.88;
    transform: translateY(-1px);
  }