/* Raster to Vector: what is particular to this page, over /shared/base.css (tokens, frame,
   controls, file button, problems, out-of-date results and the narrow layout). */

.previews {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.preview { margin: 0; min-width: 0; }
.preview canvas, .preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.preview canvas { image-rendering: pixelated; }
.preview figcaption { margin-top: 0.3rem; font-size: 0.9rem; }
.palette { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.palette li { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: center; }
.swatch {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.palette code { font-variant-numeric: tabular-nums; }
