.colour-converter-page {
  --converter-colour: #ff2f87;
  --converter-label-bg: #ffffff;
  --converter-label-ink: #20111f;
}

.colour-converter-page .canvas-bench {
  align-content: start;
}

.colour-converter-page .canvas-bench .tool-actions {
  align-items: center;
}

.colour-converter-page .colour-preview {
  display: grid;
  grid-template-columns: minmax(8rem, .45fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: stretch;
  padding: var(--space-3);
  border: var(--line) solid var(--input-border);
  border-radius: var(--radius-xl);
  background: var(--form-bg);
  box-shadow: var(--inset-highlight);
}

.colour-converter-page .colour-preview__swatch {
  display: grid;
  place-items: end start;
  min-height: 10rem;
  padding: var(--space-3);
  border: var(--line) solid var(--tool-object-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 42%),
    var(--converter-colour);
  box-shadow: var(--tool-object-shadow);
}

.colour-converter-page .colour-preview__swatch span {
  max-width: 100%;
  padding: .32rem .54rem;
  border-radius: 999px;
  color: var(--converter-label-ink);
  background: var(--converter-label-bg);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: var(--label-weight);
  overflow-wrap: anywhere;
}

.colour-converter-page .colour-preview > div:last-child {
  display: grid;
  align-content: center;
  gap: var(--space-2);
  min-width: 0;
}

.colour-converter-page .colour-preview strong {
  color: var(--text-brand);
  font-size: var(--step-1);
  line-height: 1.08;
}

.colour-converter-page .colour-preview p:not(.mini-label) {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-plain);
  font-size: var(--step--1);
  font-weight: var(--body-weight);
}

.colour-converter-page .colour-preview.is-empty .colour-preview__swatch {
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--text-soft) 18%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--text-soft) 18%, transparent) 25%, transparent 25%),
    var(--tool-object-bg);
  background-size: 1.4rem 1.4rem;
}

.colour-converter-page .colour-format-list .metadata-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, max-content) minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3);
}

.colour-converter-page .colour-format-list .metadata-row span {
  min-width: 0;
  color: var(--text-body);
}

.colour-converter-page .colour-value {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.colour-converter-page .colour-copy-button {
  min-height: 2.35rem;
  padding: .55rem .8rem;
}

@media (max-width: 700px) {
  .colour-converter-page .colour-preview,
  .colour-converter-page .colour-format-list .metadata-row {
    grid-template-columns: 1fr;
  }

  .colour-converter-page .colour-copy-button {
    justify-self: start;
  }
}
