/* Palette Puller — scoped under .palette-puller-page. */
.palette-puller-page {
  --category-gradient: var(--category-colour-bits);
}

/* layout-preview-first: pin the topline to its natural height and let the stage
   row absorb any extra so the preview fills the card with no empty band above it. */
.palette-puller-page .canvas-bench {
  grid-template-rows: auto 1fr auto;
}

/* Let the drop zone / image preview fill the stage (mirrors picture-shrinker). */
.palette-puller-page .device-stage {
  place-items: stretch;
  min-height: 24rem;
}

.palette-puller-page .image-drop-zone {
  min-height: 100%;
}

/* Extracted colours render as a responsive grid of tap-to-copy swatches. */
.palette-puller-page .palette-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: var(--space-2);
  min-height: 3rem;
}

.palette-puller-page .swatch {
  display: grid;
  gap: .4rem;
  padding: .5rem;
  border: var(--control-border-width) solid var(--control-border);
  border-radius: var(--radius-lg);
  background: var(--inset-surface);
  box-shadow: var(--inset-control-shadow);
  cursor: pointer;
}

.palette-puller-page .swatch:hover {
  border-color: var(--input-focus);
}

.palette-puller-page .swatch__chip {
  height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-md);
}

.palette-puller-page .swatch__hex {
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-align: center;
  letter-spacing: .02em;
}
