:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6eaf0;
  --soft: #f8fafc;
  --brand: #287be8;
  --brand-dark: #125dcc;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; zoom: 0.8; }
body { margin: 0; min-width: 320px; background: #fff; color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; overflow: hidden; }
.site-header { position: sticky; top: 0; z-index: 20; height: 72px; background: rgba(255,255,255,.94); border-bottom: 1px solid #eef1f5; backdrop-filter: blur(16px); }
.header-inner { max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 34px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: auto; }
.brand-mark { height: 46px; width: auto; object-fit: contain; flex: 0 0 auto; }
/* ==========================================================================
   Tubelight Navigation Bar Styling
   ========================================================================== */
.primary-nav.tubelight-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 4px 6px;
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
  margin-right: auto;
}

.tubelight-lamp {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: rgba(40, 123, 232, 0.08);
  border-radius: 9999px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  opacity: 0;
}

.tubelight-lamp .lamp-bar {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  background: var(--brand, #287be8);
  border-radius: 9999px 9999px 0 0;
  box-shadow: 0 0 10px 2px rgba(40, 123, 232, 0.7);
}

.tubelight-lamp .lamp-glow-lg {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 20px;
  background: rgba(40, 123, 232, 0.25);
  border-radius: 9999px;
  filter: blur(8px);
}

.tubelight-lamp .lamp-glow-md {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 14px;
  background: rgba(40, 123, 232, 0.35);
  border-radius: 9999px;
  filter: blur(4px);
}

.primary-nav .nav-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 16px;
  border-radius: 9999px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.primary-nav .nav-icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav .nav-link:hover {
  color: var(--brand-dark, #125dcc);
}

.primary-nav .nav-link:hover .nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

.primary-nav .nav-link.active {
  color: var(--brand-dark, #125dcc);
}

.primary-nav .nav-link.active .nav-icon {
  opacity: 1;
  stroke-width: 2.2;
}

.nav-chevron { width: 12px; margin-left: 2px; opacity: 0.7; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.global-search { width: 330px; height: 43px; border: 1px solid #dfe5ec; border-radius: 10px; display: flex; align-items: center; padding: 0 11px; color: #94a3b8; background: #fff; }
.global-search svg { width: 19px; flex: 0 0 auto; }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 0 10px; color: var(--ink); background: transparent; font-size: 13px; }
.global-search kbd { padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f8fafc; font-size: 11px; white-space: nowrap; }
.icon-button, .signin-button { border: 1px solid #e0e6ee; background: #fff; }
.icon-button { width: 43px; height: 43px; border-radius: 9px; display: grid; place-items: center; color: #182235; }
.icon-button:hover { border-color: #a8c8f4; color: var(--brand); }
.signin-button { height: 43px; padding: 0 17px; border-color: var(--brand); border-radius: 9px; color: #fff; background: var(--brand); font-size: 14px; font-weight: 700; box-shadow: 0 6px 14px rgba(40,123,232,.18); }
.signin-button:hover { background: var(--brand-dark); }
.hero { position: relative; background: linear-gradient(111deg, #f8fbff 3%, #f3f7fe 57%, #edf5ff 100%); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(1px); }
.hero::before { width: 380px; height: 380px; right: -100px; top: 20px; background: rgba(172, 215, 255, .2); }
.hero::after { width: 300px; height: 300px; right: 80px; bottom: -150px; background: rgba(210, 190, 255, .22); }
.hero-inner { position: relative; z-index: 1; max-width: 1400px; min-height: 420px; margin: 0 auto; padding: 48px 68px 40px; display: grid; grid-template-columns: 1fr 540px; gap: 58px; align-items: center; }
.eyebrow { margin: 0 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -.3px; color: #334155; }
.hero-copy h1 { max-width: 650px; margin: 0; font-size: clamp(43px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -3px; font-weight: 800; }
.gradient-text { color: #2f79e9; }
.hero-copy .lead { max-width: 580px; margin: 20px 0 23px; color: #657184; font-size: 17px; line-height: 1.62; }
.hero-search-row { display: flex; align-items: stretch; gap: 16px; max-width: 560px; }
.hero-search { flex: 1; height: 50px; border: 1px solid #d9e1eb; border-radius: 7px; background: #fff; display: flex; align-items: center; padding: 0 14px; box-shadow: 0 4px 16px rgba(50,76,108,.04); }
.hero-search svg { width: 20px; color: #64748b; flex: 0 0 auto; }
.hero-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding-left: 12px; color: var(--ink); font-size: 14px; }
.eyedropper { width: 50px; border: 1px solid #d9e1eb; border-radius: 7px; display: grid; place-items: center; color: var(--brand); background: #fff; }
.eyedropper:hover { background: #eff6ff; }
.popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: #64748b; font-size: 13px; }
.popular-label { margin-right: 2px; }
.popular-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #e5eaf1; border-radius: 999px; color: #475569; background: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; }
.popular-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #3182f6); }
.popular-pill.green { --dot: #19a74a; } .popular-pill.red { --dot: #e11d48; } .popular-pill.purple { --dot: #984be9; }
.view-all { margin-left: 8px; color: var(--brand-dark); font-weight: 600; }
.picker-card { min-height: 326px; display: grid; grid-template-columns: 1.25fr .8fr; gap: 26px; padding: 17px; border: 1px solid #e8edf4; border-radius: var(--radius-lg); background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.picker-left { min-width: 0; }
.picker-right { display: grid; gap: 8px; min-width: 0; }
.color-stage { position: relative; height: 145px; overflow: hidden; border-radius: 7px; background: linear-gradient(to bottom, transparent, #000), linear-gradient(to right, #fff, #3b82f6); touch-action: none; }
.color-stage::after { content: ""; position: absolute; width: 17px; height: 17px; left: var(--stage-x, 67%); top: var(--stage-y, 38%); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(30,41,59,.25); transform: translate(-50%, -50%); }
.hue-slider { width: 100%; height: 11px; margin: 18px 0 16px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, #f00 0%, #ff0 16.67%, #0f0 33.33%, #0ff 50%, #00f 66.67%, #f0f 83.33%, #f00 100%); }
.hue-slider::-webkit-slider-thumb { width: 20px; height: 20px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: #287be8; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hue-slider::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #287be8; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.value-stack { display: grid; gap: 7px; }
.value-row { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 6px; min-height: 30px; color: #526174; font-size: 12px; }
.value-row input { width: 100%; height: 30px; border: 1px solid #e3e8ef; border-radius: 6px; padding: 0 10px; outline: 0; color: #64748b; background: #fff; font-size: 12px; }
.copy-mini { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 5px; color: #4b5563; background: transparent; }
.copy-mini:hover { color: var(--brand); background: #eff6ff; }
.swatch-preview { min-height: 145px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 10px; border-radius: 7px; background: #3b82f6; color: #fff; }
.swatch-preview span { font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.favorite-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: rgba(255,255,255,.9); background: rgba(15,23,42,.15); }
.favorite-button.is-favorite svg { fill: currentColor; }
.copy-hex { grid-column: 2; height: 41px; border: 0; border-radius: 6px; color: #fff; background: var(--brand); font-weight: 600; box-shadow: 0 7px 14px rgba(40,123,232,.19); }
.copy-hex:hover { background: var(--brand-dark); }

.copy-hex-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
  transition: all .3s ease;
}
.copy-hex-wrapper:hover {
  background: #e2e8f0;
}
.copy-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #cbd5e1;
  width: 0%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.copy-content-original {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}
.copy-content-confirmation {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.08);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}
.copy-check-circle {
  width: 24px;
  height: 24px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.copy-check-circle svg {
  width: 14px;
  height: 14px;
}
.copy-hex-wrapper.copied .copy-progress-bar {
  opacity: 1;
}
.copy-hex-wrapper.copied .copy-content-original {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.92);
  pointer-events: none;
}
.copy-hex-wrapper.copied .copy-content-confirmation {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}
.feature-strip { max-width: 1400px; margin: 0 auto; padding: 17px 68px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.feature-card { min-height: 93px; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #e8ebef; border-radius: 12px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-2px); border-color: #cfe0f8; box-shadow: 0 10px 22px rgba(15,23,42,.06); }
.feature-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--feature-color); background: var(--feature-bg); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.2; }
.feature-card p { margin: 0; color: #697586; font-size: 12px; line-height: 1.42; }
.feature-arrow { margin-left: auto; color: #64748b; font-size: 18px; }
.catalog { border-top: 1px solid #eef1f4; background: #fff; }
.catalog-inner { max-width: 1400px; margin: 0 auto; padding: 29px 68px 70px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.count-badge { display: inline-flex; align-items: center; margin-left: 10px; padding: 5px 10px; border-radius: 999px; color: var(--brand-dark); background: #eaf3ff; font-size: 12px; font-weight: 600; vertical-align: middle; }
.sort-select { height: 41px; min-width: 134px; padding: 0 11px; border: 1px solid #e1e6ed; border-radius: 7px; outline: 0; color: #64748b; background: #fff; font-size: 12px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 17px 0 28px; }
.filter-button { height: 28px; padding: 0 13px; border: 1px solid #e8ebef; border-radius: 999px; color: #3f4b5e; background: #fff; font-size: 12px; }
.filter-button:hover { border-color: #b4d0f4; color: var(--brand-dark); }
.filter-button.active { border-color: var(--brand); color: #fff; background: var(--brand); }
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.color-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 23px 25px; }

/* CSS transition on .color-grid children for smooth fade-in and slide-up */
.color-grid > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
  will-change: opacity, transform;
}

.color-grid > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.color-grid > *:nth-child(1) { transition-delay: 15ms; }
.color-grid > *:nth-child(2) { transition-delay: 30ms; }
.color-grid > *:nth-child(3) { transition-delay: 45ms; }
.color-grid > *:nth-child(4) { transition-delay: 60ms; }
.color-grid > *:nth-child(5) { transition-delay: 75ms; }
.color-grid > *:nth-child(6) { transition-delay: 90ms; }
.color-grid > *:nth-child(7) { transition-delay: 105ms; }
.color-grid > *:nth-child(8) { transition-delay: 120ms; }
.color-grid > *:nth-child(9) { transition-delay: 135ms; }
.color-grid > *:nth-child(10) { transition-delay: 150ms; }
.color-grid > *:nth-child(11) { transition-delay: 165ms; }
.color-grid > *:nth-child(12) { transition-delay: 180ms; }
.color-grid > *:nth-child(13) { transition-delay: 195ms; }
.color-grid > *:nth-child(14) { transition-delay: 210ms; }
.color-grid > *:nth-child(15) { transition-delay: 225ms; }
.color-grid > *:nth-child(16) { transition-delay: 240ms; }
.color-grid > *:nth-child(17) { transition-delay: 255ms; }
.color-grid > *:nth-child(18) { transition-delay: 270ms; }

.color-card {
  overflow: hidden;
  border: 1px solid #e5e9ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.02);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s ease, box-shadow 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .color-grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.color-card.is-visible:hover,
.color-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(15,23,42,.1); }
.color-block { height: 82px; }
.color-card-body { padding: 11px 12px 12px; }
.color-card-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.color-card-name { overflow: hidden; margin: 0; color: #182235; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.card-fav-btn {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #f8fafc;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-fav-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
}
.card-fav-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #ef4444;
  transform: scale(1.06);
}
.card-fav-btn:focus-visible {
  box-shadow: 0 0 0 2px #3b82f6;
}
.card-fav-btn.is-fav {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}
.card-fav-btn.is-fav:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
.card-fav-btn.animating {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes heartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  75% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.filter-saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ef4444;
}
.filter-saved:hover {
  border-color: #fca5a5;
  color: #dc2626;
}
.filter-saved.active {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}
.saved-count-pill {
  font-size: 11px;
  opacity: 0.9;
}
.filter-reset-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #dc2626;
  background: #fef2f2;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-left: 2px;
}
.filter-reset-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  transform: translateY(-1px);
}
.filter-reset-btn:active {
  transform: translateY(0);
}
.saved-banner-wrap {
  width: 100%;
}
.saved-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 22px;
  background: #fff5f5;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.05);
}
.saved-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #991b1b;
}
.saved-header-heart {
  color: #ef4444;
  font-size: 15px;
}
.saved-reset-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  background: #ffffff;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.saved-reset-action-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}
.saved-reset-action-btn:active {
  transform: scale(0.98);
}
.color-card-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #64748b; font-size: 11px; line-height: 1.7; }
.color-card-line strong { color: #273244; font-weight: 500; }
.card-copy { width: 23px; height: 23px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #5b6574; background: transparent; }
.card-copy:hover { color: var(--brand); background: #eff6ff; }
.card-copy svg { width: 15px; }
.empty-state { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; padding: 11px 15px; border-radius: 8px; color: #fff; background: #13213a; box-shadow: 0 12px 28px rgba(15,23,42,.2); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.footer { padding: 32px 24px; border-top: 1px solid #eef1f4; color: #64748b; font-size: 14px; text-align: center; background: #ffffff; }
.footer-content-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 1200px; margin: 0 auto; }
.footer-copyright { color: #64748b; font-size: 14px; }
.footer-brand-name { font-weight: 600; color: #334155; }
.footer-developer { color: #64748b; font-size: 14px; margin-bottom: 6px; }
.footer-dev-link { color: #334155; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.footer-dev-link:hover { color: var(--brand); text-decoration: underline; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.footer-links a { color: #475569; font-weight: 500; text-decoration: none; padding: 4px 8px; border-radius: 6px; transition: color 0.2s, background 0.2s; font-size: 14px; }
.footer-links a:hover { color: var(--brand); background: #f8fafc; }
.footer-dot { color: #cbd5e1; }

.page-view {
  display: none;
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 48px 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.page-view.active {
  display: block;
}
#home-view.hidden {
  display: none;
}
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-back-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.page-bottom-nav {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-start;
}
.page-bottom-nav .page-back-btn {
  margin-bottom: 0;
}
.page-content h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
.page-date {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}
.page-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 8px;
}
.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 16px;
}
.page-content ul {
  margin: 0 0 16px 20px;
  color: #334155;
  line-height: 1.7;
}
.page-content li {
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .more-overlay {
    align-items: center;
  }
  .more-sheet {
    border-radius: 24px;
    max-width: 440px;
  }
}
@media (max-width: 1180px) {
  .header-inner { padding: 0 24px; gap: 20px; } .brand { min-width: 205px; font-size: 26px; } .primary-nav { gap: 16px; } .global-search { width: 240px; }
  .hero-inner { grid-template-columns: 1fr 470px; padding: 42px 40px 38px; gap: 30px; } .feature-strip, .catalog-inner { padding-left: 40px; padding-right: 40px; } .color-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { height: auto; } .header-inner { min-height: 70px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; } .primary-nav { order: 3; width: 100%; height: 36px; overflow-x: auto; gap: 24px; } .primary-nav a { height: 36px; } .header-actions { margin-left: auto; } .global-search { width: min(320px, 42vw); }
  .hero-inner { grid-template-columns: 1fr; } .picker-card { max-width: 610px; } .feature-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .header-inner { padding-left: 16px; padding-right: 16px; } .brand { min-width: unset; font-size: 24px; } .signin-button { padding: 0 11px; } .global-search { display: none; }
  .hero-inner { padding: 34px 18px 32px; } .hero-copy h1 { font-size: 43px; letter-spacing: -2px; } .hero-copy .lead { font-size: 15px; } .hero-search-row { gap: 8px; } .picker-card { grid-template-columns: 1fr; padding: 16px; }
  .picker-right { display: flex; align-items: stretch; gap: 14px; }
  .swatch-preview { flex: 1 1 auto; min-width: 0; min-height: 105px; height: 105px; padding: 16px 18px; border-radius: 14px; }
  .copy-hex-wrapper { flex: 0 0 56px; width: 56px; min-width: 56px; height: 105px; flex-shrink: 0; padding: 0; grid-column: auto; border-radius: 14px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(15,23,42,.06); }
  .copy-text-label { display: none; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 18px; } .feature-card { min-height: 88px; padding: 11px; } .feature-card p { font-size: 11px; }
  .catalog-inner { padding: 27px 18px 55px; } .catalog-heading { align-items: flex-start; flex-direction: column; } .sort-select { width: 100%; } .color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .color-block { height: 75px; } .footer { padding: 28px 18px; }
  .footer-links { gap: 4px; }
  .page-view { margin: 20px 16px 60px; padding: 24px 18px; border-radius: 14px; }
}

/* Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  color: #3b82f6;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s, color 0.2s;
}
.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #2563eb;
  transform: translateY(-2px);
}
.back-to-top-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .back-to-top-btn {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }
}

/* More Menu & Content Modal */
.more-overlay, .content-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.more-overlay.open, .content-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.more-sheet, .content-modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  transform: translateY(30px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.more-overlay.open .more-sheet, .content-modal-overlay.open .content-modal-card {
  transform: translateY(0);
}
.more-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.more-sheet-header h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  color: #0f172a;
}
.more-close-btn, .content-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.more-close-btn:hover, .content-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.more-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.more-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.more-menu-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.more-item-icon {
  font-size: 18px;
  width: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.more-item-label {
  flex: 1;
}
.more-item-arrow {
  color: #94a3b8;
  flex-shrink: 0;
}
.more-menu-item:hover .more-item-arrow {
  color: #0f172a;
}

.content-modal-overlay {
  align-items: center;
  padding: 16px;
}
.content-modal-card {
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 600px;
}
.content-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}
.content-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.content-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .more-overlay {
    align-items: center;
    padding: 16px;
  }
  .more-sheet {
    border-radius: 24px;
    max-width: 440px;
    padding: 28px 24px;
  }
}
@media (max-width: 430px) {
  .footer-links {
    gap: 10px;
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .footer-links {
    gap: 8px;
    font-size: 12px;
  }
}

/* ========================================================
   COLOR MIX MODE STYLES (Full Page View)
   ======================================================== */

.color-mix-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease;
}

.color-mix-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.color-mix-card {
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: none;
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transform: none;
}

.color-mix-overlay.active .color-mix-card {
  transform: none;
}

/* Header */
.color-mix-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.color-mix-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.color-mix-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.color-mix-back-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.color-mix-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.color-mix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 3px;
}

.color-mix-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.color-mix-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.color-mix-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-mix-saved-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.color-mix-saved-trigger:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.color-mix-saved-trigger strong {
  color: #2563eb;
}

.color-mix-history-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.color-mix-history-trigger:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.color-mix-history-trigger strong {
  color: #7c3aed;
}

.mix-history-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #e11d48;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mix-history-clear-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.color-mix-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.color-mix-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Main Content Layout (Full Page View) */
.color-mix-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 28px;
  padding: 24px 24px 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .color-mix-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 14px 40px;
  }
}

.color-mix-preview-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.color-mix-controls-col {
  width: 100%;
}

/* Control Card matching IMG_20260910_145342.jpg */
.mix-control-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .mix-control-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
}

/* 1. CSS Code Section - Professional IDE Code Editor */
.mix-css-section {
  margin-bottom: 24px;
}

.mix-css-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mix-css-section-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.mix-css-ready-badge {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 9px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* Professional Code Editor Window */
.mix-code-editor {
  position: relative;
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid #30363d;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mix-code-editor:hover {
  border-color: #3b4252;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.42), 0 3px 10px rgba(15, 23, 42, 0.2);
}

/* Top Window Header Bar */
.mix-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  gap: 12px;
  user-select: none;
}

.mix-editor-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* 3 macOS / Window Chrome dots */
.mix-editor-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mix-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.mix-dot-close {
  background-color: #ff5f56;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 95, 86, 0.2);
}

.mix-dot-min {
  background-color: #ffbd2e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 189, 46, 0.2);
}

.mix-dot-max {
  background-color: #27c93f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(39, 201, 63, 0.2);
}

/* Active File Tab */
.mix-editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-bottom: 1px solid #0d1117;
  border-radius: 6px 6px 0 0;
  margin-bottom: -9px;
  padding-bottom: 9px;
  white-space: nowrap;
}

.mix-editor-tab-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.mix-editor-filename {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: #c9d1d9;
  letter-spacing: -0.01em;
}

/* Top Header Right Controls */
.mix-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mix-editor-lang-tag {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #58a6ff;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Integrated Developer Copy Button */
.mix-editor-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mix-editor-copy-btn:hover {
  background: #30363d;
  color: #f0f6fc;
  border-color: #8b949e;
}

.mix-editor-copy-btn:active {
  transform: scale(0.97);
}

.mix-editor-copy-btn .mix-copy-icon-check {
  display: none;
}

.mix-editor-copy-btn.copied {
  background: rgba(46, 160, 67, 0.2);
  color: #3fb950;
  border-color: rgba(46, 160, 67, 0.5);
  box-shadow: 0 0 10px rgba(46, 160, 67, 0.15);
}

.mix-editor-copy-btn.copied .mix-copy-icon-default {
  display: none;
}

.mix-editor-copy-btn.copied .mix-copy-icon-check {
  display: inline-block;
}

/* Editor Body & Scroll Area */
.mix-editor-body {
  position: relative;
  background: #0d1117;
}

.mix-editor-scroll-area {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}

.mix-editor-scroll-area::-webkit-scrollbar {
  height: 6px;
}

.mix-editor-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.mix-editor-scroll-area::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

.mix-editor-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

.mix-editor-code-table {
  display: flex;
  flex-direction: column;
  min-width: max-content;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.mix-code-line {
  display: flex;
  align-items: center;
  min-width: max-content;
  padding: 1px 4px;
  border-radius: 4px;
  transition: background-color 0.12s ease;
}

.mix-code-line:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Gutter & Line Numbers */
.mix-line-num {
  user-select: none;
  -webkit-user-select: none;
  width: 26px;
  padding-right: 12px;
  margin-right: 12px;
  text-align: right;
  color: #484f58;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  border-right: 1px solid #21262d;
}

.mix-line-code {
  white-space: pre;
  color: #e6edf3;
  tab-size: 4;
}

/* Syntax Highlighting Tokens (VS Code Dark+ & Modern IDE Theme) */
.tok-prop {
  color: #79c0ff; /* CSS Property names: vibrant cyan blue */
  font-weight: 500;
}

.tok-punct {
  color: #8b949e; /* Punctuation :, ;, (, ), , : subtle slate */
}

.tok-fn {
  color: #d2a8ff; /* CSS functions like linear-gradient: warm violet */
  font-weight: 600;
}

.tok-num {
  color: #ffa657; /* Numbers: warm amber */
  font-weight: 500;
}

.tok-unit {
  color: #ff7b72; /* Units like deg, %: soft coral pink */
  font-weight: 500;
}

.tok-hex {
  color: #f0f6fc; /* Hex color value: high-contrast white */
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tok-hash {
  color: #f778ba; /* # prefix: neon rose syntax hash */
  font-weight: 700;
}

.tok-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .mix-editor-header {
    padding: 7px 10px;
    gap: 8px;
  }

  .mix-editor-dots {
    gap: 5px;
  }

  .mix-dot {
    width: 8px;
    height: 8px;
  }

  .mix-editor-tab {
    padding: 2px 7px;
    margin-bottom: -8px;
    padding-bottom: 8px;
  }

  .mix-editor-filename {
    font-size: 11px;
  }

  .mix-editor-lang-tag {
    font-size: 9.5px;
    padding: 1px 5px;
  }

  .mix-editor-copy-btn {
    padding: 3px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .mix-editor-scroll-area {
    padding: 12px 12px;
  }

  .mix-editor-code-table {
    font-size: 12px;
    line-height: 1.65;
  }

  .mix-line-num {
    width: 20px;
    padding-right: 8px;
    margin-right: 8px;
    font-size: 11px;
  }
}

/* 2. Color Stops Section */
.mix-stops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 12px;
}

.mix-stops-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.mix-stops-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mix-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.mix-mode-control:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mix-mode-control:focus-within {
  border-color: #0066ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.mix-mode-icon {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.mix-mode-select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  padding: 0 2px;
  font-family: inherit;
}

.mix-mode-select option {
  background: #ffffff;
  color: #0f172a;
  font-weight: 500;
}

.mix-btn-add-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #eff6ff;
  color: #0066ff;
  border: 1px solid #dbeafe;
  border-radius: 9999px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.mix-btn-add-stop:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.mix-stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mix-stop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mix-stop-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.mix-stop-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mix-stop-swatch-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mix-stop-swatch {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mix-stop-color-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mix-stop-hex-input {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  background: transparent;
  border: none;
  width: 90px;
  outline: none;
  text-transform: uppercase;
}

.mix-stop-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.mix-stop-slider {
  width: 90px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mix-stop-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0066ff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 102, 255, 0.35);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}

.mix-stop-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.mix-stop-pos-val,
.mix-stop-pct-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mix-stop-del-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.mix-stop-del-btn:hover:not(:disabled) {
  color: #ef4444;
  background: #fef2f2;
}

.mix-stop-del-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* 3. Bottom Actions: Random & Save Gradient Buttons */
.mix-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.mix-random-btn {
  flex: 1;
  height: 52px;
  min-height: 52px;
  padding: 0 22px;
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mix-random-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mix-random-btn:active {
  transform: scale(0.98);
}

.mix-random-btn .mix-dice-icon {
  font-size: 18px;
  line-height: 1;
}

.mix-page-preview-btn {
  flex: 1;
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  background: #eef2ff;
  color: #4338ca;
  border: 1.5px solid #c7d2fe;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(67, 56, 202, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mix-page-preview-btn:hover {
  background: #e0e7ff;
  border-color: #818cf8;
  color: #3730a3;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.16);
  transform: translateY(-1px);
}

.mix-page-preview-btn:active {
  transform: scale(0.98);
}

.mix-save-gradient-btn {
  flex: 1;
  width: auto;
  height: 52px;
  min-height: 52px;
  margin-top: 0;
  background: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.mix-save-gradient-btn:hover {
  background: #0052cc;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
  transform: translateY(-1px);
}

.mix-save-gradient-btn:active {
  transform: scale(0.98);
}

@media (max-width: 440px) {
  .mix-actions-row {
    flex-direction: column;
    gap: 10px;
  }
  .mix-random-btn,
  .mix-page-preview-btn,
  .mix-save-gradient-btn {
    flex: none;
    width: 100%;
  }
}

/* Stage controls */
.mix-stage-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mix-angle-picker {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 2px;
}

.mix-angle-chip {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mix-angle-chip:hover {
  color: #ffffff;
}

.mix-angle-chip.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mix-stage-random-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mix-stage-random-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: scale(1.02);
}

.mix-stage-random-btn:active {
  transform: scale(0.98);
}

.color-mix-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mix-panel-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.mix-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mix-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

/* 1. Counter Control */
.mix-counter-ctrl {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mix-counter-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.mix-counter-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.mix-counter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mix-counter-value {
  min-width: 80px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  user-select: none;
}

/* 2. Color Selection Slots */
.mix-slots-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mix-random-base-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mix-random-base-btn:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.mix-slots-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mix-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 6px 10px 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.mix-slot-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.mix-slot-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mix-slot-num {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mix-slot-color-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mix-slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mix-slot-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.mix-slot-hex {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.mix-slot-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

/* 3. Primary Action Button */
.mix-generate-row {
  margin-top: 4px;
}

.mix-primary-generate-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  isolation: isolate;
}

.mix-primary-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -2px rgba(124, 58, 237, 0.55), 0 0 20px rgba(99, 102, 241, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.mix-primary-generate-btn:active {
  transform: translateY(1px) scale(0.99);
}

.smoky-button__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.smoky-button__copy {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.mix-primary-generate-btn .mix-dice-icon {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Right Side: Generated Palette Main Section */
.color-mix-main {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 20px;
  min-height: 400px;
}

/* 16. Empty State */
.mix-empty-state {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
  max-width: 320px;
}

.mix-empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.mix-empty-state h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
}

.mix-empty-state p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* Single Result UI Layout */
.mix-result-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mix-single-result-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Large Smooth Gradient Preview Area */
.mix-gradient-stage {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  background-size: 200% 200%;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  color: #ffffff;
}

.mix-gradient-stage.theme-dark {
  color: #ffffff;
}

.mix-gradient-stage.theme-light {
  color: #0f172a;
}

/* Top Flow Header */
.mix-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
  position: relative;
}

.mix-stage-hex-flow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.mix-stage-counter {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Left & Right Navigation Arrows */
.mix-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.4);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.mix-nav-arrow:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.mix-nav-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.mix-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.mix-nav-prev {
  left: 16px;
}

.mix-nav-next {
  right: 16px;
}

/* Center Generated Color Name & Single HEX Pill */
.mix-stage-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: auto 0;
  padding: 10px 48px;
  z-index: 2;
  position: relative;
}

.mix-stage-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.mix-stage-color-name {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mix-stage-hex-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  font-size: 14px;
}

.mix-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: inline-block;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Under the Result Area: Specs and Actions */
.mix-result-details {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
}

/* Specs Grid: HEX, RGB, HSL */
.mix-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mix-spec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}

.mix-spec-box:hover {
  border-color: #cbd5e1;
}

.mix-spec-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mix-spec-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mix-spec-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mix-spec-copy-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.mix-spec-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Actions Row: Copy HEX, Generate Again, Favorite */
.mix-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mix-btn-copy-hex {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 1;
  min-height: 44px;
  height: 44px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.mix-btn-copy-hex:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  border-color: rgba(255, 255, 255, 0.18);
}

.mix-btn-copy-hex:active {
  transform: translateY(1px);
}

/* Copy Progress Fill (animates across the button background) */
.mix-copy-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45) 0%, rgba(124, 58, 237, 0.55) 100%);
  opacity: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mix-btn-copy-hex.is-copied .mix-copy-progress {
  opacity: 1;
}

/* Original Content (Blurs & Scales Down upon Copy) */
.mix-copy-original {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  z-index: 2;
}

.mix-btn-copy-hex.is-copied .mix-copy-original {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.92);
  pointer-events: none;
  z-index: 0;
}

/* Confirmation Content (Blurs In & Checks Mark Animates) */
.mix-copy-confirm {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.08);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 3;
}

.mix-btn-copy-hex.is-copied.show-confirmation .mix-copy-confirm {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

.mix-copy-check-circle {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.mix-copy-check-svg {
  width: 12px;
  height: 12px;
  color: #0f172a;
}

.mix-copy-check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.mix-btn-copy-hex.is-copied.show-confirmation .mix-copy-check-path {
  stroke-dashoffset: 0;
}

.mix-copy-confirm-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.mix-btn-generate-again {
  flex: 1;
  min-height: 44px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b, #3b82f6);
  background-size: 300% 300%;
  animation: rainbowFlow 8s ease infinite;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mix-btn-generate-again:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
  transform: translateY(-1px);
}

.mix-btn-generate-again:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.mix-btn-fav-single {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #db2777;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mix-btn-fav-single:hover {
  background: #fce7f3;
  color: #be185d;
  transform: scale(1.06);
}

.mix-btn-fav-single.is-fav {
  background: #fce7f3;
  color: #e11d48;
  border-color: #f43f5e;
}

.mix-btn-fav-single.is-fav svg {
  fill: currentColor;
}

.mix-btn-fav-single.animating {
  animation: mixHeartPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mixHeartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@media (max-width: 640px) {
  .mix-specs-grid {
    grid-template-columns: 1fr;
  }
  .mix-stage-color-name {
    font-size: 26px;
  }
  .mix-gradient-stage {
    min-height: 270px;
    padding: 16px;
  }
  .mix-stage-hex-flow {
    font-size: 12px;
    padding: 5px 10px;
  }
  .mix-result-actions {
    flex-wrap: wrap;
  }
  .mix-btn-copy-hex,
  .mix-btn-generate-again {
    width: 100%;
    flex: none;
  }
}

/* Color Picker Popover/Modal */
.mix-picker-overlay,
.mix-saved-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mix-picker-overlay.active,
.mix-saved-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mix-picker-card,
.mix-saved-card {
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mix-picker-header,
.mix-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f6;
  background: #fafcff;
}

.mix-picker-header h3,
.mix-saved-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.mix-picker-sub,
.mix-saved-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.mix-picker-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mix-picker-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mix-picker-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  color: #94a3b8;
}

.mix-picker-search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  color: #0f172a;
  background: transparent;
}

.mix-picker-categories {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  overflow-x: auto;
  border-bottom: 1px solid #f1f5f9;
  background: #fbfcfe;
  scrollbar-width: none;
}

.mix-picker-categories::-webkit-scrollbar {
  display: none;
}

.mix-picker-cat-btn {
  white-space: nowrap;
  min-height: 28px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mix-picker-cat-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.mix-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px 20px;
  overflow-y: auto;
  max-height: 380px;
}

.mix-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.mix-picker-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.mix-picker-swatch {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.mix-picker-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mix-picker-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mix-picker-hex {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: #64748b;
}

/* Saved Palettes Modal List */
.mix-saved-list {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mix-saved-empty {
  text-align: center;
  padding: 36px 12px;
  color: #64748b;
  font-size: 14px;
}

.mix-saved-card-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.mix-saved-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mix-saved-date {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.mix-saved-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mix-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.mix-saved-load-btn {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
}

.mix-saved-load-btn:hover {
  background: #ede9fe;
}

.mix-saved-copy-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.mix-saved-copy-btn:hover {
  background: #e2e8f0;
}

.mix-saved-del-btn {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.mix-saved-del-btn:hover {
  background: #ffe4e6;
}

.mix-saved-strips {
  display: flex;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mix-saved-strip-color {
  flex: 1;
  height: 100%;
}

.mix-saved-hexes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mix-saved-hex-pill {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
}

/* ========================================================
   RESPONSIVE OPTIMIZATIONS (360px - 768px)
   ======================================================== */

@media (max-width: 768px) {
  .color-mix-content {
    grid-template-columns: 1fr;
    padding: 18px 16px 44px;
    gap: 20px;
    max-height: none;
    overflow: visible;
  }

  .color-mix-card {
    max-height: none;
    height: auto;
    min-height: 100%;
  }

  .mix-palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mix-card-swatch {
    height: 84px;
  }

  .mix-picker-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .color-mix-overlay {
    padding: 0;
  }

  .color-mix-card {
    max-height: none;
    height: auto;
    min-height: 100%;
    border-radius: 0;
    border: 0;
  }

  .color-mix-header {
    padding: 12px 14px;
  }

  .color-mix-header-left {
    gap: 10px;
  }

  .color-mix-back-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .color-mix-header h2 {
    font-size: 19px;
  }

  .color-mix-content {
    padding: 14px 12px 36px;
    gap: 16px;
    max-height: none;
    overflow: visible;
  }

  .mix-panel-block {
    padding: 12px;
  }

  .mix-counter-value {
    min-width: 65px;
    font-size: 13px;
  }

  .mix-palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mix-card-swatch {
    height: 76px;
  }

  .mix-card-body {
    padding: 10px 8px;
  }

  .mix-card-name {
    font-size: 12px;
  }

  .mix-card-hex {
    font-size: 11.5px;
  }

  .mix-card-rgb {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .color-mix-header h2 {
    font-size: 18px;
  }

  .color-mix-saved-trigger span {
    font-size: 12px;
  }

  .mix-palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .mix-card-swatch {
    height: 68px;
  }
}

/* ==========================================================================
   Recently Viewed Section
   ========================================================================== */
.recently-viewed {
  border-top: 1px solid #eef1f4;
  background: #f8fafc;
  padding: 32px 0 36px;
}

.recently-viewed-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 68px;
}

.recently-viewed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.recently-viewed-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recently-viewed-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf3ff;
  color: var(--brand, #2d7ae9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recently-viewed-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recently-viewed-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.recently-viewed-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 400;
}

.recently-viewed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recently-viewed-clear-btn {
  height: 32px;
  padding: 0 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recently-viewed-clear-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

.recently-viewed-clear-btn:active {
  transform: translateY(0);
}

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.recent-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  cursor: pointer;
  outline: none;
}

.recent-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.recent-card:focus-visible {
  border-color: var(--brand, #2d7ae9);
  box-shadow: 0 0 0 3px rgba(45, 122, 233, 0.2);
}

.recent-swatch-area {
  position: relative;
  width: 100%;
  height: 68px;
  overflow: hidden;
}

.recent-single-swatch {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.recent-card:hover .recent-single-swatch {
  transform: scale(1.04);
}

.recent-palette-bar {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.recent-card:hover .recent-palette-bar {
  transform: scale(1.04);
}

.recent-palette-slice {
  flex: 1;
  height: 100%;
}

.recent-type-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

.recent-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.recent-card:hover .recent-delete-btn,
.recent-card:focus-within .recent-delete-btn {
  opacity: 1;
}

.recent-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.recent-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  background: #ffffff;
}

.recent-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.recent-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-hex-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.recent-dots-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.recent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.recent-action-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.recent-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.recent-empty-card {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.recent-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.recent-empty-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  max-width: 420px;
  line-height: 1.5;
}

/* Curated Palettes Modal */
.palettes-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.palettes-overlay.active {
  display: grid;
}

.palettes-card {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: palettesModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes palettesModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.palettes-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
}

.palettes-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3eafe;
  color: #9850de;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.palettes-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.palettes-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: #64748b;
}

.palettes-grid {
  padding: 20px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.palette-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.palette-item-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.palette-item-strip {
  height: 64px;
  display: flex;
  width: 100%;
}

.palette-item-strip-slice {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: flex 0.2s ease;
}

.palette-item-strip-slice:hover {
  flex: 1.5;
}

.palette-item-details {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.palette-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.palette-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.palette-item-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 999px;
}

.palette-item-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.palette-item-color-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.palette-item-color-pill:hover {
  border-color: var(--brand, #2d7ae9);
  color: var(--brand, #2d7ae9);
}

.palette-item-color-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.palette-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.palette-item-btn {
  flex: 1;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.palette-item-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.palette-item-btn.primary {
  background: var(--brand, #2d7ae9);
  border-color: var(--brand, #2d7ae9);
  color: #ffffff;
}

.palette-item-btn.primary:hover {
  background: var(--brand-dark, #1a63cc);
}

/* Responsive adjustments for Recently Viewed */
@media (max-width: 1200px) {
  .recently-viewed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .recently-viewed-inner {
    padding: 0 24px;
  }
  .recently-viewed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .palettes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .recently-viewed-inner {
    padding: 0 16px;
  }
  .recently-viewed-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .recently-viewed-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .recently-viewed-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   Google AdSense Responsive Display Ad Slot Styles
   ========================================================================== */
.ad-slot-section {
  width: 100%;
  max-width: 1400px;
  margin: 16px auto 20px;
  padding: 0 68px;
  box-sizing: border-box;
  clear: both;
}

.ad-slot-container {
  display: block;
  position: relative;
  text-align: center;
  background: #fbfcfe;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 10px 14px 14px;
  box-sizing: border-box;
  min-height: 0;
  width: 100%;
  transition: opacity 0.25s ease;
}

.ad-slot-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ad-slot-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  line-height: 1;
  user-select: none;
}

/* AdSense Slot container responsive sizing */
.ad-slot-container ins.adsbygoogle {
  display: block;
  margin: 0 auto;
  min-height: 90px;
  width: 100%;
  min-width: 250px;
}

/* If AdSense marks the ad as unfilled or AdBlock hides it, prevent empty broken boxes */
.ad-slot-section:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

@media (max-width: 1100px) {
  .ad-slot-section {
    padding: 0 40px;
    margin: 14px auto 18px;
  }
}

@media (max-width: 768px) {
  .ad-slot-section {
    padding: 0 18px;
    margin: 10px auto 14px;
  }
  .ad-slot-container {
    padding: 8px 10px 10px;
    border-radius: 10px;
  }
  .ad-slot-container ins.adsbygoogle {
    min-height: 50px;
  }
}

/* Popular Grid interactive scaling hover */
.popular-grid .popular-card,
.popular-grid > * {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.28s ease !important;
  will-change: transform;
}

.popular-grid .popular-card:hover,
.popular-grid > *:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

.popular-grid .popular-card:active,
.popular-grid > *:active {
  transform: translateY(-1px) scale(0.99) !important;
  transition-duration: 0.1s !important;
}

.popular-grid .popular-card:hover .popular-swatch {
  transform: scale(1.08) !important;
}

/* ==========================================================================
   Animated Tab Bar Component Styles
   ========================================================================== */

@keyframes strok {
  100% {
    stroke-dashoffset: 400;
  }
}

/* ==========================================================================
   Animated Tab Bar Showcase Section
   ========================================================================== */
.animated-tabs-showcase-section {
  max-width: 1400px;
  margin: 24px auto 40px;
  padding: 0 68px;
}

.animated-tabs-showcase-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.animated-tabs-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 28px;
}

.animated-tabs-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.animated-tabs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.animated-tabs-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.animated-tabs-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .animated-tabs-showcase-section {
    padding: 0 20px;
  }
  .animated-tabs-showcase-container {
    padding: 24px 16px;
  }
}

.svg-container {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 0 12px;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin: 0;
  list-style: none;
}

.menu__item {
  all: unset;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 56px;
  padding: 0 16px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu__item .icon {
  width: 24px;
  height: 24px;
  stroke: #1e293b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.menu__item.active {
  transform: translateY(-8px);
}

.menu__item.active .icon {
  stroke: var(--bgColorItem, #3b82f6);
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: strok 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.menu__border {
  position: absolute;
  left: 0;
  bottom: 99%;
  width: 10.9em;
  height: 2.4em;
  clip-path: url(#menu-clip-path);
  -webkit-clip-path: url(#menu-clip-path);
  background-color: inherit;
  transition: transform var(--timeOut, 0.45s cubic-bezier(0.4, 0, 0.2, 1));
  pointer-events: none;
}




/* Reference-matched homepage layer: the catalog below remains unchanged. */
:root { --brand:#7650ee; --brand-dark:#5631d5; }
body { background:#f7f9ff; }
.site-header { height:72px; background:rgba(255,255,255,.88); border-bottom:1px solid rgba(226,232,240,.72); }
.header-inner { max-width:1480px; padding:0 42px; gap:30px; }
.brand-mark { height:42px; }
.primary-nav.tubelight-nav { height:44px; padding:3px 5px; background:transparent; border:0; box-shadow:none; }
.primary-nav .nav-link { padding:0 13px; color:#59647a; font-size:13px; }
.primary-nav .nav-link.active { color:#fff; background:linear-gradient(135deg,#9a54ee,#6646e9); box-shadow:0 7px 18px rgba(113,67,230,.28); }
.primary-nav .nav-link.active .nav-icon { display:none; }
.tubelight-lamp { display:none; }
.header-actions { gap:12px; }
.global-search { width:254px; height:42px; border:1px solid #e6e8f1; border-radius:22px; background:#fafaff; }
.global-search kbd { border:0; background:#f1f1fa; border-radius:5px; }
.header-theme { width:42px; height:42px; border:1px solid #e6e8f1; border-radius:50%; background:#fff; color:#253052; font-size:20px; }
.signin-button { height:42px; padding:0 22px; border:0; border-radius:22px; background:linear-gradient(135deg,#8952ed,#385de8); box-shadow:0 8px 18px rgba(89,73,226,.24); }
.hero { background:radial-gradient(circle at 86% 22%,rgba(255,178,220,.54),transparent 28%),radial-gradient(circle at 62% 86%,rgba(155,211,255,.45),transparent 32%),linear-gradient(125deg,#f6fbff 0%,#f0f5ff 54%,#fff1fa 100%); }
.hero::before { width:540px; height:540px; right:-145px; top:-120px; background:rgba(255,170,206,.2); filter:blur(24px); }
.hero::after { width:430px; height:430px; right:265px; bottom:-205px; background:rgba(165,194,255,.24); filter:blur(30px); }
.hero-inner { max-width:1480px; min-height:0; padding:58px 54px 28px; display:grid; grid-template-columns:1.15fr .85fr; gap:32px; align-items:center; }
.hero-copy { padding-left:0; }
.eyebrow { display:inline-flex; align-items:center; gap:7px; margin:0 0 14px; padding:6px 12px; border:1px solid #e4e7f0; border-radius:999px; background:rgba(255,255,255,.72); color:#556179; font-size:12px; font-weight:700; letter-spacing:0; }
.eyebrow-dot { color:#f1a52a; }
.hero-copy h1 { max-width:620px; font-size:clamp(42px,4.5vw,64px); line-height:1.04; letter-spacing:-3.7px; }
.gradient-text { background:linear-gradient(90deg,#6c43ed,#eb3f98); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-copy .lead { max-width:560px; margin:18px 0 22px; color:#647087; font-size:16px; line-height:1.55; }
.hero-search-row, .popular { display:none; }
.hero-cta-row { display:flex; gap:14px; margin-top:7px; }
.hero-primary-cta, .hero-secondary-cta { display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 23px; border-radius:24px; font-weight:800; font-size:13px; }
.hero-primary-cta { color:#fff; background:linear-gradient(100deg,#c83cf1,#3c61ed); box-shadow:0 10px 22px rgba(104,74,225,.24); }
.hero-primary-cta span { margin-left:10px; font-size:19px; }
.hero-secondary-cta { border:1px solid #e1e5ee; color:#2d3850; background:#fff; box-shadow:0 7px 17px rgba(45,56,80,.08); }
.hero-stats { display:flex; gap:28px; margin-top:28px; }
.hero-stats span { display:grid; grid-template-columns:31px auto; grid-template-rows:auto auto; column-gap:8px; align-items:center; }
.hero-stats b { grid-row:1 / span 2; display:grid; place-items:center; width:31px; height:31px; border-radius:50%; color:#5e4ee8; background:#edf0ff; font-size:19px; }
.hero-stats span:nth-child(2) b { color:#6f3fe7; background:#eeeaff; }
.hero-stats span:nth-child(3) b { color:#ed4f78; background:#ffe9ef; }
.hero-stats strong { font-size:16px; line-height:1; }
.hero-stats small { color:#7e8799; font-size:10px; }
.hero-art { position:relative; min-height:360px; display:flex; align-items:center; justify-content:center; }
.hero-asset-img { width:100%; max-width:540px; height:auto; max-height:420px; object-fit:contain; filter:drop-shadow(0 18px 36px rgba(60,50,140,.12)); transition:transform .3s ease; }
.hero-asset-img:hover { transform:translateY(-4px) scale(1.015); }
.art-stack { position:absolute; width:310px; height:240px; right:34px; top:72px; transform:rotate(-10deg); }
.art-layer { position:absolute; inset:0; border:1px solid rgba(255,255,255,.82); border-radius:23px; transform:skewY(4deg) rotate(1deg); box-shadow:0 17px 34px rgba(101,67,220,.2),inset 0 0 30px rgba(255,255,255,.3); }
.layer-back { top:70px; left:10px; background:linear-gradient(135deg,#3b8dfd,#7333e5 55%,#fa6eb1); opacity:.78; }
.layer-mid { top:36px; left:0; background:linear-gradient(135deg,#5567ff,#cf39ef 53%,#ff8252); opacity:.88; }
.layer-front { top:0; background:linear-gradient(135deg,rgba(161,231,255,.82),rgba(197,104,255,.9) 48%,rgba(255,155,96,.92)); backdrop-filter:blur(8px); }
.art-note { position:absolute; left:20px; top:6px; z-index:3; color:#26304b; font-family:Georgia,serif; font-style:italic; font-size:16px; line-height:1.15; transform:rotate(-12deg); }
.art-note span { display:block; margin-left:16px; font-size:35px; }
.art-chip { position:absolute; z-index:4; display:grid; grid-template-columns:19px auto; column-gap:8px; align-items:center; min-width:126px; padding:11px 14px; border-radius:15px; color:#27314a; background:rgba(255,255,255,.86); box-shadow:0 12px 22px rgba(63,44,147,.12); transform:rotate(9deg); }
.art-chip i { grid-row:1 / span 2; width:19px; height:19px; border-radius:50%; background:#ff5360; }
.art-chip b { font-size:12px; }.art-chip small { color:#737c92; font-size:9px; }.chip-top { right:-3px; top:70px; }.chip-bottom { left:20px; bottom:20px; transform:rotate(10deg); }.chip-bottom i { background:#4d55dd; }
.hero-wide-search { grid-column:1 / -1; display:flex; align-items:center; height:62px; padding:0 12px 0 22px; border:1px solid #e2e6f0; border-radius:17px; background:rgba(255,255,255,.86); box-shadow:0 10px 28px rgba(79,91,140,.08); color:#6d7590; }
.hero-wide-search svg { width:22px; flex:0 0 auto; }.hero-wide-search input { width:100%; border:0; outline:0; padding:0 15px; background:transparent; color:#24304a; font-size:14px; }.hero-wide-search button { width:40px; height:40px; border:0; border-radius:11px; color:#fff; background:linear-gradient(135deg,#9850ee,#405de7); font-size:23px; }
.wide-popular { grid-column:1 / -1; display:flex; align-items:center; justify-content:center; gap:12px; margin-top:-17px; color:#737d95; font-size:12px; }
.wide-popular .popular-pill { padding:7px 13px; background:rgba(255,255,255,.74); }.wide-popular .orange { --dot:#ef851d; }.wide-popular .pink { --dot:#ec3c9c; }.wide-popular .gray { --dot:#667085; }
.picker-card { grid-column:1 / -1; min-height:340px; padding:20px; grid-template-columns:1.45fr .92fr; gap:32px; border-radius:22px; background:rgba(255,255,255,.9); box-shadow:0 17px 38px rgba(70,77,130,.11); }
.color-stage { height:188px; border-radius:13px; background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,#8b5cf6); }.hue-slider { margin:18px 0 16px; width:11px; height:188px; writing-mode:vertical-lr; transform:rotate(180deg); float:right; margin-top:-206px; margin-right:-24px; }.value-stack { margin-top:10px; }.swatch-preview { min-height:188px; border-radius:13px; background:#8b5cf6; }.copy-hex-wrapper { height:45px; border-radius:12px; background:linear-gradient(100deg,#bf42ed,#4a5eeb); }.copy-content-original { color:#fff; }.copy-content-confirmation { color:#fff; }.copy-check-circle { background:#fff; color:#6549e5; }
.feature-strip { max-width:1480px; padding:8px 54px 26px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; background:transparent; }
.feature-strip::before { content:"Everything You Need in One Place"; grid-column:1 / -1; margin:18px 0 2px; color:#17213d; font-size:24px; font-weight:850; letter-spacing:-.8px; }
.feature-strip::after { content:"Powerful tools to work with colors. Simple, fast and free."; grid-column:1 / -1; grid-row:2; margin-top:-10px; color:#7c8598; font-size:13px; }
.feature-card { min-height:92px; padding:16px; border:1px solid #edf0f7; border-radius:14px; background:rgba(255,255,255,.9); box-shadow:0 8px 20px rgba(60,70,120,.05); }.feature-card h3 { font-size:13px; }.feature-card p { font-size:11px; }.feature-arrow { color:#6873aa; }
.catalog { background:#fff; }
@media (max-width: 900px) { .header-inner { padding:0 18px; gap:12px; }.primary-nav { display:none !important; }.global-search { width:170px; }.hero-inner { grid-template-columns:1.08fr .92fr; padding:36px 20px 22px; gap:20px; }.hero-art { height:auto; min-height:0; margin:0 auto; display:flex; justify-content:center; align-items:center; order:0; }.hero-asset-img { max-height:340px; }.hero-copy h1 { font-size:38px; }.picker-card { grid-template-columns:1fr; }.hue-slider { float:none; writing-mode:initial; transform:none; width:100%; height:11px; margin:15px 0; }.feature-strip { padding:8px 22px 24px; grid-template-columns:repeat(2,1fr); }.wide-popular { overflow:auto; justify-content:flex-start; white-space:nowrap; }.header-theme { display:none; } }
@media (max-width: 720px) { .hero-inner { grid-template-columns:1fr; padding:30px 18px 20px; gap:18px; }.hero-art { order:0; margin:4px auto; }.hero-asset-img { max-height:260px; } }
@media (max-width: 560px) { .header-actions .global-search { display:none; }.signin-button { padding:0 15px; }.hero-copy h1 { font-size:32px; letter-spacing:-1.8px; }.hero-stats { gap:12px; }.hero-stats small { font-size:9px; }.feature-strip { grid-template-columns:1fr; }.hero-art { height:auto; min-height:0; margin:0 auto; display:flex; justify-content:center; order:0; }.hero-asset-img { max-height:220px; } }

.mobile-menu-toggle { display:none; width:40px; height:40px; padding:9px; border:1px solid #e5e8f1; border-radius:12px; background:#fff; }
.mobile-menu-toggle span { display:block; height:2px; margin:4px 0; border-radius:3px; background:#39445e; transition:transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle.is-open span:nth-child(1) { transform:translateY(6px) rotate(45deg); }.mobile-menu-toggle.is-open span:nth-child(2) { opacity:0; }.mobile-menu-toggle.is-open span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.mobile-nav-panel { display:none; }
@media (max-width: 900px) {
  .site-header { height:62px; }
  .header-inner { min-width:0; padding:0 16px; justify-content:space-between; gap:8px; }
  .brand-mark { height:34px; max-width:118px; }
  .header-actions { margin-left:auto; }
  .header-actions .global-search, .header-theme { display:none; }
  .signin-button { height:36px; padding:0 15px; font-size:12px; }
  .mobile-menu-toggle { display:block; flex:0 0 auto; }
  .mobile-nav-panel { position:fixed; top:62px; left:12px; right:12px; z-index:40; display:grid; grid-template-columns:repeat(2,1fr); gap:8px; padding:12px; border:1px solid #e5e8f1; border-radius:16px; background:rgba(255,255,255,.97); box-shadow:0 18px 40px rgba(34,44,82,.18); opacity:0; pointer-events:none; transform:translateY(-8px); transition:opacity .2s ease, transform .2s ease; }
  .mobile-nav-panel.is-open { opacity:1; pointer-events:auto; transform:translateY(0); }
  .mobile-nav-panel a { padding:12px 14px; border-radius:11px; color:#3a4560; background:#f7f8fd; font-size:13px; font-weight:700; }
  .mobile-nav-panel a:active { color:#fff; background:#7650ee; }
  .hero-inner { display:grid; grid-template-columns:1.15fr .85fr; padding:28px 18px 22px; gap:16px; align-items:center; }
  .hero-copy { order:1; min-width:0; }
  .hero-copy h1 { font-size:clamp(26px,6vw,44px); line-height:1.06; letter-spacing:-1.5px; }
  .hero-copy .lead { font-size:15px; line-height:1.52; margin:10px 0 14px; color:#5a667d; }
  .eyebrow { margin-bottom:9px; font-size:9px; padding:5px 9px; }
  .hero-cta-row { gap:9px; flex-wrap:wrap; }
  .hero-primary-cta,.hero-secondary-cta { height:36px; padding:0 15px; font-size:10px; }
  .hero-stats { gap:12px; margin-top:16px; flex-wrap:wrap; }
  .hero-stats b { width:24px; height:24px; font-size:14px; }
  .hero-stats strong { font-size:12px; }
  .hero-stats small { font-size:8px; }
  .hero-art { order:2 !important; min-height:0 !important; height:auto; margin:0 !important; display:flex !important; justify-content:center; align-items:center; width:100%; min-width:0; visibility:visible !important; opacity:1 !important; }
  .hero-asset-img, #hero-art > img { display:block !important; width:auto !important; max-width:100% !important; max-height:180px; height:auto !important; margin:0 auto; object-fit:contain; visibility:visible !important; opacity:1 !important; }
  .hero-wide-search { grid-column:1 / -1; order:3; height:46px; border-radius:13px; padding-left:14px; }
  .hero-wide-search svg { width:16px; }
  .hero-wide-search input { font-size:11px; padding:0 9px; }
  .hero-wide-search button { width:30px; height:30px; border-radius:8px; font-size:17px; }
  .wide-popular { grid-column:1 / -1; order:4; gap:6px; margin-top:-6px; font-size:9px; overflow-x:auto; justify-content:flex-start; padding-bottom:2px; }
  .wide-popular .popular-pill { padding:5px 8px; font-size:9px; }
  .wide-popular .view-all { font-size:9px; }
  .picker-card { grid-column:1 / -1; order:5; min-height:0; padding:12px; gap:12px; border-radius:16px; grid-template-columns:1fr; }
  .color-stage { height:140px; }
  .swatch-preview { min-height:140px; }
  .value-row { min-height:24px; font-size:9px; }
  .value-row input { height:24px; font-size:9px; padding:0 7px; }
  .copy-hex-wrapper { height:35px; }
  .copy-content-original { font-size:10px; }
  .copy-content-original svg { width:13px; }
  .feature-strip { padding:4px 20px 20px; gap:8px; grid-template-columns:repeat(2,1fr); }
  .feature-strip::before { margin-top:8px; font-size:18px; }
  .feature-strip::after { font-size:10px; }
  .feature-card { min-height:74px; padding:10px; border-radius:10px; }
  .feature-card h3 { margin:0 0 3px; font-size:10px; }
  .feature-card p { font-size:8px; line-height:1.25; }
  .feature-icon { width:27px; height:27px; }
  .feature-arrow { font-size:16px; }
}
@media (max-width: 560px) {
  .header-inner { padding:0 12px; }
  .header-actions .global-search { display:none; }
  .brand-mark { height:30px; max-width:108px; }
  .signin-button { padding:0 15px; }
  .hero-inner { display:grid; grid-template-columns:1.15fr .85fr; padding:18px 12px 16px; gap:10px; align-items:center; }
  .hero-copy { order:1; min-width:0; }
  .hero-copy h1 { font-size:clamp(18px,5.2vw,24px); line-height:1.1; letter-spacing:-.8px; }
  .hero-copy .lead { font-size:13.5px; line-height:1.45; margin:6px 0 10px; color:#55637a; }
  .eyebrow { margin-bottom:6px; font-size:8px; padding:3px 7px; }
  .hero-cta-row { gap:6px; margin-top:4px; flex-wrap:wrap; }
  .hero-primary-cta,.hero-secondary-cta { height:30px; padding:0 10px; font-size:9px; border-radius:15px; }
  .hero-primary-cta span { margin-left:4px; font-size:13px; }
  .hero-stats { gap:6px; margin-top:10px; flex-wrap:wrap; }
  .hero-stats span { grid-template-columns:20px auto; column-gap:4px; }
  .hero-stats b { width:20px; height:20px; font-size:11px; }
  .hero-stats strong { font-size:9.5px; }
  .hero-stats small { font-size:7px; }
  .hero-art { order:2 !important; min-height:0 !important; height:auto !important; margin:0 !important; display:flex !important; justify-content:center; align-items:center; width:100%; min-width:0; visibility:visible !important; opacity:1 !important; }
  .hero-asset-img, #hero-art > img { display:block !important; width:auto !important; max-width:100% !important; max-height:120px; height:auto !important; margin:0 auto; object-fit:contain; filter:drop-shadow(0 8px 18px rgba(60,50,140,.12)); visibility:visible !important; opacity:1 !important; }
  .hero-wide-search { grid-column:1 / -1; order:3; height:42px; border-radius:12px; padding-left:10px; }
  .hero-wide-search svg { width:14px; }
  .hero-wide-search input { font-size:11px; padding:0 6px; }
  .hero-wide-search button { width:28px; height:28px; border-radius:7px; font-size:15px; }
  .wide-popular { grid-column:1 / -1; order:4; gap:4px; margin-top:-4px; font-size:8px; overflow-x:auto; justify-content:flex-start; }
  .wide-popular .popular-pill { padding:4px 6px; font-size:8px; }
  .wide-popular .view-all { font-size:8px; }
  .picker-card { grid-column:1 / -1; order:5; grid-template-columns:1fr; }
  .picker-left { display:grid; grid-template-columns:1fr; }
  .hue-slider { float:none; width:100%; height:8px; margin:9px 0; writing-mode:initial; transform:none; }
  .swatch-preview { min-height:90px; }
  .feature-strip { grid-template-columns:1fr; }
  .feature-strip::before,.feature-strip::after { grid-column:1 / -1; }
}
@media (max-width: 380px) {
  .hero-copy h1 { font-size:17px; }
  .hero-copy .lead { font-size:13px; line-height:1.42; margin:5px 0 8px; }
  .hero-asset-img, #hero-art > img { max-height:105px; }
}
