.count-scale { padding: 0; margin: 0; border: 0; }
.count-scale > legend { width: 100%; padding: 0; margin-bottom: 13px; font-size: .84rem; font-weight: 700; }
.count-scale-options { display: grid; grid-template-columns: repeat(var(--scale-count), minmax(0, 1fr)); align-items: start; }
.count-scale-option { position: relative; display: grid; min-width: 0; justify-items: center; cursor: pointer; }
.count-scale-option + .count-scale-option::before { position: absolute; top: 19px; left: -50%; z-index: 0; width: 100%; height: 2px; background: var(--line); content: ""; pointer-events: none; transition: background-color 220ms cubic-bezier(.23, 1, .32, 1); }
.count-scale-option.is-included::before { background: var(--green); }
.count-scale-option input[type="radio"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.count-scale-dot { position: relative; z-index: 1; isolation: isolate; display: grid; width: min(40px, 100%); aspect-ratio: 1; place-items: center; border: 1px solid var(--line-strong,#a2b9ac); border-radius: 50%; background: var(--surface,#fff); color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: .75rem; font-weight: 500; line-height: 1; transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.count-scale-dot::before { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--green-gradient,linear-gradient(135deg,#16634a,#16804c)); content: ""; opacity: 0; transition: opacity 220ms cubic-bezier(.23, 1, .32, 1); }
.count-scale-option.is-included .count-scale-dot::before { opacity: 1; }
.count-scale-option:hover .count-scale-dot { border-color: var(--green); transform: translateY(-1px); }
.count-scale-option.is-included .count-scale-dot { border-color: var(--green); color: var(--white,#fff); }
.count-scale-option input[type="radio"]:checked + .count-scale-dot { box-shadow: 0 0 0 3px var(--surface,#fff), 0 0 0 5px var(--green); }
.count-scale-option input[type="radio"]:focus-visible + .count-scale-dot { outline: 3px solid #f0c562; outline-offset: 4px; }
.count-scale-help { display: block; margin-top: 15px; color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.4; }
.count-scale-option {min-height:44px;align-items:center}.count-scale-dot {width:min(40px,100%);min-width:24px}.count-scale-options {gap:4px}.count-scale-option + .count-scale-option::before {top:21px}.count-scale > legend {margin-bottom:16px}.count-scale .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:560px){.count-scale-dot{font-size:12px;width:min(32px,100%)}.count-scale-option + .count-scale-option::before{top:21px}}
@media(prefers-reduced-motion:reduce){.count-scale *,.count-scale *::before {transition:none!important;animation:none!important}}

@media(max-width:560px){[data-maximum="10"] .count-scale-options{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:16px}[data-maximum="7"] .count-scale-options{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px}[data-maximum="10"] .count-scale-option:nth-child(6)::before,[data-maximum="7"] .count-scale-option:nth-child(5)::before{display:none}.count-scale-dot{width:36px}.count-scale-option{min-height:48px}}
