.fx-tally{--fx-m:0;--fx-e:0;--fx-it:0;display:grid;gap:14px}.fx-tally:has(#fx-tally-1:checked){--fx-m:1}.fx-tally:has(#fx-tally-2:checked){--fx-m:1;--fx-e:1}.fx-tally:has(#fx-tally-3:checked){--fx-m:1;--fx-e:1;--fx-it:1}.fx-tally:has(#fx-tally-4:checked){--fx-m:1;--fx-e:2;--fx-it:1}.fx-tally:has(#fx-tally-5:checked){--fx-m:2;--fx-e:2;--fx-it:1}.fx-tally:has(#fx-tally-6:checked){--fx-m:3;--fx-e:2;--fx-it:1}.fx-tally:has(#fx-tally-7:checked){--fx-m:3;--fx-e:2;--fx-it:2}.fx-tally:has(#fx-tally-8:checked){--fx-m:3;--fx-e:3;--fx-it:2}.fx-tally:has(#fx-tally-9:checked){--fx-m:3;--fx-e:4;--fx-it:2}.fx-tally:has(#fx-tally-10:checked){--fx-m:3;--fx-e:4;--fx-it:3}.fx-tally:has(#fx-tally-11:checked){--fx-m:3;--fx-e:4;--fx-it:4}.fx-tally:has(#fx-tally-12:checked){--fx-m:3;--fx-e:4;--fx-it:5}.fx-tally:has(#fx-tally-13:checked){--fx-m:3;--fx-e:5;--fx-it:5}.fx-tally:has(#fx-tally-14:checked){--fx-m:4;--fx-e:5;--fx-it:5}.fx-tally:has(#fx-tally-15:checked){--fx-m:4;--fx-e:5;--fx-it:6}.fx-tally .fx-note ol{margin:0;padding-left:22px}.fx-tally .fx-goal,.fx-tally .fx-caption{margin:0;color:var(--fx-ink)}.fx-tally .fx-controls{min-width:0;margin:0;padding:0;border:0}.fx-tally .fx-controls legend{padding:0;margin-bottom:8px;font-weight:800}.fx-tally .fx-controls .fx-caption{margin-bottom:8px}.fx-tally .fx-setup{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:start}.fx-tally .fx-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-width:0}.fx-tally .fx-btn{box-sizing:border-box;min-height:56px;min-width:24px;padding:5px 3px;color:var(--fx-ink);background:var(--fx-paper);border:2px solid var(--fx-muted)}.fx-tally .fx-c{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:14px;text-align:center}.fx-tally .fx-c b{font-size:12px;white-space:nowrap}.fx-tally .fx-reset{text-align:center;justify-content:center}.fx-tally .fx-c:has(input:checked) ~ .fx-c,.fx-tally:has(#fx-tally-0:checked) .fx-c{background:var(--fx-sky-pale);border-color:var(--fx-sky)}.fx-tally .fx-c:has(input:checked) ~ .fx-c .fx-tick,.fx-tally:has(#fx-tally-0:checked) .fx-tick{visibility:hidden}.fx-tally .fx-btn:has(input:checked){color:var(--fx-ink);background:var(--fx-sun-pale);border-color:var(--fx-ink)}.fx-tally .fx-btn:has(input:focus-visible){outline:3px solid var(--fx-grape);outline-offset:2px}.fx-tally:has(#fx-tally-0:checked) .fx-c:first-child{animation:fx-tally-pulse 0.9s 3}@keyframes fx-tally-pulse{50%{box-shadow:inset 0 0 0 4px var(--fx-sun)}}.fx-tally .fx-chart{box-sizing:border-box;position:relative;height:490px;padding:12px;display:grid;grid-template-rows:24px 24px repeat(3,132px);gap:6px;color:var(--fx-ink)}.fx-tally .fx-head,.fx-tally .fx-chart-row{display:grid;grid-template-columns:minmax(50px,0.85fr) minmax(70px,1.1fr) minmax(58px,1fr);gap:4px;align-items:center;min-width:0;font-size:14px}.fx-tally .fx-chart-row{display:flex;position:relative;border-top:1px solid var(--fx-muted)}.fx-tally .fx-chart-row>b{flex:0.85 1 0;min-width:50px}.fx-tally .fx-tally-cell{flex:1.1 1 0;min-width:70px}.fx-tally .fx-m{--fx-n:var(--fx-m);--fx-face:var(--fx-sky);--fx-top:var(--fx-sky-pale)}.fx-tally .fx-e{--fx-n:var(--fx-e);--fx-face:var(--fx-coral);--fx-top:var(--fx-coral-pale)}.fx-tally .fx-it{--fx-n:var(--fx-it);--fx-face:var(--fx-mint);--fx-top:var(--fx-mint-pale)}.fx-tally .fx-tallies{display:block;width:100%;max-width:110px;height:64px;overflow:visible}.fx-tally .fx-unit{--fx-on:clamp(0,calc(var(--fx-n) - var(--fx-k) + 1),1)}.fx-tally .fx-stroke{fill:none;stroke:var(--fx-ink);stroke-width:3;stroke-linecap:round;opacity:var(--fx-on);transform-box:fill-box;transform-origin:center;transform:scaleY(var(--fx-on));transition:transform 0.45s,opacity 0.25s}.fx-tally .fx-fifth{stroke-width:4;transform:rotate(calc((1 - var(--fx-on)) * -60deg)) scale(var(--fx-on))}.fx-tally .fx-well{position:relative;flex:1 1 0;min-width:58px;height:128px;perspective:600px;border-radius:8px;transition:box-shadow 0.4s,background 0.4s}.fx-tally .fx-well::after{content:"";position:absolute;bottom:8px;left:10%;width:80%;border-bottom:2px solid var(--fx-muted)}.fx-tally .fx-tower{position:absolute;left:50%;bottom:13px;width:30px;height:110px;transform-style:preserve-3d;transform:translateX(-50%) rotateX(-14deg) rotateY(-24deg);transition:transform 0.45s}.fx-tally .fx-b{position:absolute;left:0;bottom:calc((var(--fx-k) - 1) * 17px);width:30px;height:16px;box-sizing:border-box;border:1px solid var(--fx-ink);background:var(--fx-face);transform-style:preserve-3d;transform:translate3d(0,calc((1 - var(--fx-on)) * -28px),0) scale(var(--fx-on));transition:transform 0.45s}.fx-tally .fx-b::before,.fx-tally .fx-b::after{content:"";position:absolute;box-sizing:border-box;border:1px solid var(--fx-ink);background:var(--fx-top)}.fx-tally .fx-b::before{width:30px;height:20px;left:-1px;top:-1px;transform-origin:50% 0;transform:rotateX(-90deg)}.fx-tally .fx-b::after{width:20px;height:16px;left:29px;top:-1px;transform-origin:0 50%;transform:rotateY(90deg)}.fx-tally:has(#fx-tally-15:checked) .fx-it .fx-well{background:var(--fx-sun-pale);box-shadow:inset 0 0 0 3px var(--fx-sun)}.fx-tally .fx-status{display:grid}.fx-tally .fx-status p{grid-area:1/1;visibility:hidden;margin:0}.fx-tally:has(#fx-tally-0:checked) .fx-s0,.fx-tally:has(#fx-tally-1:checked) .fx-s1,.fx-tally:has(#fx-tally-2:checked) .fx-s2,.fx-tally:has(#fx-tally-3:checked) .fx-s3,.fx-tally:has(#fx-tally-4:checked) .fx-s4,.fx-tally:has(#fx-tally-5:checked) .fx-s5,.fx-tally:has(#fx-tally-6:checked) .fx-s6,.fx-tally:has(#fx-tally-7:checked) .fx-s7,.fx-tally:has(#fx-tally-8:checked) .fx-s8,.fx-tally:has(#fx-tally-9:checked) .fx-s9,.fx-tally:has(#fx-tally-10:checked) .fx-s10,.fx-tally:has(#fx-tally-11:checked) .fx-s11,.fx-tally:has(#fx-tally-12:checked) .fx-s12,.fx-tally:has(#fx-tally-13:checked) .fx-s13,.fx-tally:has(#fx-tally-14:checked) .fx-s14,.fx-tally:has(#fx-tally-15:checked) .fx-s15{visibility:visible}@container (max-width:480px){.fx-tally .fx-setup{grid-template-columns:1fr}.fx-tally .fx-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.fx-tally .fx-c{animation:none}.fx-tally .fx-stroke,.fx-tally .fx-b,.fx-tally .fx-tower,.fx-tally .fx-well{transition:none}}