.card-choices { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.card-choices legend { padding: 0; font-weight: 700; margin-bottom: .5rem; }
.card-choices > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.card-choices label { position: relative; display: grid; justify-items: center; gap: .4rem; padding: .7rem .5rem .5rem; border: 2px solid transparent; border-radius: .5rem; cursor: pointer; }
.card-choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.card-choices label:has(input:checked) { border-color: currentColor; }
.card-choices label:has(input:checked) > span:last-child { font-weight: 700; }
.card-choices label:has(input:focus-visible) { outline: 3px solid var(--action, currentColor); outline-offset: 2px; }
.card-preview { display: flex; justify-content: center; width: 100%; }
/* Wider than the phone layout's limit, so each preview shows the full design. */
.card-preview .card { width: 78px; flex: none; }
.card-preview .card + .card { margin-inline-start: -52px; }
.card-palette-preview { display: flex; justify-content: center; gap: .2rem; }
.card-palette-preview .card { display: grid; place-items: center; width: 1.55rem; flex: none; }
