/* Color palettes page theme tokens */
:root {
  --bg-gradient: radial-gradient(circle at 20% 0%, rgba(124, 93, 255, 0.2), transparent 45%), radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.25), transparent 50%), linear-gradient(135deg, #050816 0%, #101836 40%, #1c2751 100%);
  --panel-bg: rgba(13, 19, 40, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: var(--primary);
  --accent-strong: var(--primary-strong);
  --success: #4ade80;
  --text-main: #f5f6ff;
  --text-muted: var(--text-secondary);
  --swatch-shadow: var(--shadow-soft);
}

/* Base layout for the color palettes workspace */
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 64px clamp(16px, 5vw, 64px);
}

.copy-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -24px);
  background: rgba(12, 18, 42, 0.88);
  color: #f8faff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 93, 255, 0.45);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 999;
}

.copy-toast[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.palette-wheel-open {
  overflow: hidden;
}

.palette-layout {
  /* Disposición principal: editor a la izquierda, biblioteca a la derecha */
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(320px, 30%);
  gap: clamp(24px, 4vw, 32px);
  align-items: start;
}

.palette-layout {
}

.palette-editor,
.palette-library {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 32px);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 24px);
}

.palette-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.palette-header__titles h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
}

.palette-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.palette-mode {
  --indicator-gap: 6px;
  --indicator-padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: var(--indicator-gap);
  background: rgba(10, 16, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: var(--indicator-padding);
  position: relative;
  overflow: hidden;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.palette-base {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.palette-base__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.75);
}

.palette-base__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.palette-base[data-active="false"] {
  opacity: 0.55;
  filter: saturate(0.7);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.palette-base[data-active="false"] .palette-base__controls {
  pointer-events: none;
}

.palette-base__color {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

.palette-base__color::-webkit-color-swatch {
  border-radius: 50%;
  border: none;
}

.palette-base__color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.palette-base__color::-moz-color-swatch {
  border-radius: 50%;
  border: none;
}

.palette-base__hex {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 11, 29, 0.85);
  color: var(--text-main);
  padding: 0.65rem 0.75rem;
  width: 110px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.palette-base__hex:focus-visible {
  outline: 2px solid rgba(124, 93, 255, 0.65);
  outline-offset: 3px;
}

.palette-base__hex--readonly {
  cursor: not-allowed;
  opacity: 0.65;
}

.palette-sizes {
  --indicator-gap: 6px;
  --indicator-padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: var(--indicator-gap);
  background: rgba(10, 16, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: var(--indicator-padding);
  position: relative;
  overflow: hidden;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.btn-chip {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-chip:hover {
  border-color: rgba(124, 93, 255, 0.5);
  color: var(--text-main);
}

.btn-chip--active {
  border-color: rgba(124, 93, 255, 0.65);
  color: var(--text-main);
}

.btn--compact {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.btn-toggle {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-toggle,
.btn-chip {
  position: relative;
  z-index: 1;
}

.choice-indicator {
  position: absolute;
  top: var(--indicator-padding, 4px);
  bottom: var(--indicator-padding, 4px);
  left: var(--indicator-padding, 4px);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.35), rgba(93, 207, 255, 0.28));
  transform: translateX(0);
  transition: transform 0.28s ease, width 0.28s ease;
  pointer-events: none;
  z-index: 0;
}

.btn-toggle:hover {
  color: var(--text-main);
}

.btn-toggle--active {
  color: var(--text-main);
  border-color: rgba(124, 93, 255, 0.65);
  box-shadow: 0 10px 20px rgba(124, 93, 255, 0.25);
}

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

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 3vw, 22px);
}

.swatch-grid--animating .swatch:not(.swatch--locked) {
  animation: swatchSlideIn 0.38s ease forwards;
  animation-delay: calc(var(--swatch-index, 0) * 45ms);
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 22, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--swatch-shadow);
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.swatch:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 93, 255, 0.4);
}

.swatch.swatch--locked {
  transform: translateY(-4px);
  border-color: rgba(124, 93, 255, 0.55);
}

.swatch__preview {
  position: relative;
  border-radius: 16px;
  height: 140px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.swatch__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.swatch__lock-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 13, 31, 0.65);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.swatch__lock-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.6), rgba(93, 207, 255, 0.55));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.swatch__lock-bar:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}

.swatch__lock-bar:focus-visible {
  outline: 2px solid rgba(124, 93, 255, 0.75);
  outline-offset: 3px;
}

.swatch__lock-bar[data-locked="true"] {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 18px rgba(124, 93, 255, 0.25);
}

.swatch__lock-bar[data-locked="true"]::after {
  transform: scaleX(1);
}

.swatch-grid--animating .swatch.swatch--locked {
  border-color: rgba(124, 93, 255, 0.55);
}

.swatch__hex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', monospace;
}

.swatch__hex input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 11, 29, 0.9);
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swatch__hex input:focus-visible {
  outline: none;
  border-color: rgba(124, 93, 255, 0.8);
  box-shadow: 0 0 0 2px rgba(124, 93, 255, 0.25);
}

.swatch__hex input.invalid {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.swatch__button {
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  min-width: 72px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  justify-self: end;
}

.swatch__button:hover {
  background: rgba(124, 93, 255, 0.28);
  transform: translateY(-1px);
}

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

.swatch__controls {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
}

.swatch__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.palette-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.helper {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.palette-meta {
  font-size: 0.92rem;
  color: rgba(148, 255, 214, 0.92);
}

.palette-library {
  gap: 18px;
}

.library-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.library-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.library-empty {
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  background: rgba(9, 14, 32, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.library-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 32, 0.85);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.library-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.library-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.library-item__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.library-item__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.library-item__meta--sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.library-item__preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 6px;
}

.library-item__swatch {
  border-radius: 12px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.library-item__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.library-item__btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex: 1 0 100px;
  text-align: center;
}

.library-item__btn:hover {
  background: rgba(124, 93, 255, 0.25);
}

/* Chromatic wheel modal shell */
.palette-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(5, 9, 20, 0.7);
  backdrop-filter: blur(8px);
}

.palette-modal[hidden] {
  display: none;
}

.palette-modal__dialog {
  position: relative;
  width: min(840px, 96vw);
  border-radius: 28px;
  background: rgba(12, 18, 38, 0.94);
  border: 1px solid rgba(124, 93, 255, 0.3);
  box-shadow: 0 32px 80px rgba(5, 8, 22, 0.55);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.8fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "header header"
    "wheel controls";
  gap: clamp(1.5rem, 2.6vw, 2.2rem) clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--text-main);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.palette-modal--open .palette-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.palette-modal--closing .palette-modal__dialog {
  transform: translateY(22px) scale(0.96);
  opacity: 0;
}

.palette-modal__close {
  /* Close button reuses pill style from palette cards */
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 14, 32, 0.85);
  color: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.palette-modal__close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.palette-modal__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
}

.palette-modal__header p {
  margin: 0.4rem 0 0;
  color: rgba(222, 227, 255, 0.75);
  line-height: 1.5;
  font-size: 0.95rem;
}

.palette-modal__viewer {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 50%;
  padding: clamp(6px, 1vw, 8px);
  background: radial-gradient(circle, rgba(124, 93, 255, 0.28), rgba(13, 20, 45, 0.9) 70%, rgba(9, 14, 32, 0.96));
  box-shadow: 0 18px 38px rgba(124, 93, 255, 0.22), 0 0 0 1px rgba(124, 93, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.palette-modal__controls,
.palette-modal__card,
.palette-modal__slider,
.palette-modal__preview,
.palette-modal__actions {
  /* Controls stack mirrors the main page cards for consistency */
}

.palette-modal__canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: crosshair;
}

.palette-modal__marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(12, 18, 38, 0.65);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.palette-modal__slider {
  display: block;
  background: rgba(7, 11, 29, 0.88);
  border: 1px solid rgba(124, 93, 255, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.palette-modal__slider input[type="range"] {
  width: 100%;
  flex: 1;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(124, 93, 255, 0.35));
  outline: none;
}

.palette-modal__slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.palette-modal__slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.palette-modal__slider-value {
  min-width: 48px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 93, 255, 0.35);
  background: rgba(7, 11, 29, 0.9);
  color: var(--text-main);
  font-size: 0.85rem;
  text-align: center;
}

.palette-modal__preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.palette-modal__preview-chip {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.palette-modal__preview-hex {
  font-family: 'DM Sans', monospace;
  font-size: 1rem;
}

.palette-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}


.palette-modal__header {
  grid-area: header;
}

.palette-modal__viewer {
  grid-area: wheel;
}

.palette-modal__controls {
  /* Stack de tarjetas que replica el look general de la página principal */
  grid-area: controls;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 320px;
  width: 100%;
  justify-self: start;
}

.palette-modal__card {
  background: rgba(13, 20, 45, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 18px 32px rgba(8, 12, 28, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.palette-modal__card--slider {
  gap: 0.6rem;
}

.palette-modal__card--preview {
  gap: 0.85rem;
}

.palette-modal__card--actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.palette-modal__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(222, 227, 255, 0.72);
}

.palette-modal__card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(235, 238, 255, 0.9);
  letter-spacing: 0.02em;
  text-transform: none;
}

.palette-modal__slider,
.palette-modal__preview,
.palette-modal__actions {
  width: 100%;
}

.palette-modal__slider {
  display: block;
  background: rgba(7, 11, 29, 0.88);
  border: 1px solid rgba(124, 93, 255, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.palette-modal__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(9, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.palette-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1080px) {
  body {
    padding-top: 80px;
  }

  .palette-layout {
    grid-template-columns: 1fr;
  }

  .palette-library {
    order: -1;
  }
}

@media (max-width: 820px) {
  .palette-modal__dialog {
    display: flex;
    flex-direction: column;
    width: min(460px, 94vw);
    gap: 1.6rem;
  }

  .palette-modal__viewer {
    width: min(320px, 78vw);
    margin: 0 auto;
  }

  .palette-modal__slider,
  .palette-modal__preview,
  .palette-modal__actions {
    width: 100%;
  }

  .palette-modal__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .palette-toolbar {
    gap: 16px;
  }

  .palette-base__controls {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .palette-base__controls .btn--compact {
    flex: 1 1 140px;
  }

  .palette-base__hex {
    flex: 1 1 140px;
  }

  .btn--compact {
    width: 100%;
    text-align: center;
  }

  .swatch-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .swatch__preview {
    height: 120px;
  }

  .palette-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .palette-sizes {
    align-self: flex-start;
  }
}
