.strand-action,
.strand-sign span {
  --strand-corner: 16px;
}

.strand-action--large {
  --strand-corner: 20px;
}

:is(.strand-action, .strand-sign span, [data-strand-surface]) {
  border-radius: var(--strand-corner);
  corner-shape: superellipse(2.321928094887362); /* 2^K = 5 */
}

input[data-strand-surface] {
  appearance: none;
}

/* The SVG paints both the fill and the stroke. Keep the actual border width
   for layout and leave the browser's focus outline outside the surface. */
[data-strand-squircle-painted] {
  background-color: transparent !important;
  background-image: var(--strand-squircle-image) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  clip-path: none !important;
}

[data-strand-squircle-clipped] {
  border-radius: 0;
  clip-path: var(--strand-squircle-path);
}

[data-strand-squircle-clipped]:focus-visible {
  outline-offset: -4px;
}
