.fx-dial { --fx-angle: 90deg; display: grid; gap: 14px; }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-tablets:checked) { --fx-angle: 90.09deg; }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-sugar:checked) { --fx-angle: 180deg; }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-potatoes:checked) { --fx-angle: 360deg; }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-baby:checked) { --fx-angle: 373deg; }
.fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-sugar:checked) { --fx-angle: 91.8deg; }
.fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-potatoes:checked) { --fx-angle: 95.4deg; }
.fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-baby:checked) { --fx-angle: 108deg; }
.fx-dial .fx-steps { margin: 0; padding-left: 24px; }
.fx-dial .fx-steps li + li { margin-top: 6px; }
.fx-dial .fx-goal, .fx-dial .fx-watch, .fx-dial .fx-safety { margin: 0; color: var(--fx-ink); }
.fx-dial .fx-safety { font-size: 12px; line-height: 1.5; }
.fx-dial .fx-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-dial .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-dial .fx-scale-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-dial .fx-shelf-label { margin: 0 0 8px; }
.fx-dial .fx-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fx-dial .fx-btn { box-sizing: border-box; min-width: 0; min-height: 44px; padding: 10px; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-muted); white-space: normal; overflow-wrap: anywhere; }
.fx-dial .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun-pale); border-color: var(--fx-ink); }
.fx-dial .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-dial .fx-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 14px; }
.fx-dial .fx-choice-icon { width: 42px; height: 42px; flex: 0 0 42px; fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-dial .fx-hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; }
.fx-dial .fx-scene { position: relative; box-sizing: border-box; height: 570px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fx-ink); }
.fx-dial .fx-scale-label { line-height: 24px; }
.fx-dial .fx-pan { width: 100%; max-width: 300px; height: 110px; flex-shrink: 0; fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-dial .fx-pan text { fill: var(--fx-ink); stroke: none; font-size: 20px; text-anchor: middle; }
.fx-dial .fx-pan .fx-pan-label { font-size: 18px; }
.fx-dial .fx-pan-bowl { fill: var(--fx-mint); }
.fx-dial .fx-pan-item { visibility: hidden; }
.fx-dial:has(#fx-dial-tablets:checked) .fx-pan-tablets, .fx-dial:has(#fx-dial-sugar:checked) .fx-pan-sugar, .fx-dial:has(#fx-dial-potatoes:checked) .fx-pan-potatoes, .fx-dial:has(#fx-dial-baby:checked) .fx-pan-baby { visibility: visible; }
.fx-dial .fx-perspective { perspective: 800px; width: 100%; height: 240px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.fx-dial .fx-face { position: relative; width: 230px; max-width: 100%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(12deg) rotateY(-8deg); }
.fx-dial .fx-face::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: var(--fx-muted); transform: translateZ(-10px) translateY(5px); }
.fx-dial .fx-dial-art, .fx-dial .fx-wheel, .fx-dial .fx-wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-dial .fx-dial-art { transform: translateZ(1px); }
.fx-dial .fx-face-disc { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 4; }
.fx-dial .fx-dial-art text { fill: var(--fx-ink); font-size: 20px; text-anchor: middle; }
.fx-dial .fx-dial-art .fx-part-text, .fx-dial .fx-dial-art .fx-minor { font-size: 18px; }
.fx-dial .fx-ticks, .fx-dial .fx-leader { fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-dial .fx-leader { stroke-dasharray: 3 3; }
.fx-dial .fx-wheel { transform-style: preserve-3d; transform: rotateZ(var(--fx-angle)) translateZ(8px); transition: transform 0.65s steps(4, end); }
.fx-dial .fx-gear { fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-dial .fx-needle { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-dial .fx-hub { fill: var(--fx-ink); }
.fx-dial .fx-stop { fill: var(--fx-muted); stroke: var(--fx-ink); stroke-width: 1; }
.fx-dial .fx-bath { visibility: hidden; }
.fx-dial:has(#fx-dial-bath:checked) .fx-kitchen { visibility: hidden; }
.fx-dial:has(#fx-dial-bath:checked) .fx-bath { visibility: visible; }
.fx-dial .fx-unit, .fx-dial .fx-limit-label { margin: 0; font-size: 14px; line-height: 20px; text-align: center; }
.fx-dial .fx-stack { display: grid; min-width: 0; }
.fx-dial .fx-stack > p { grid-area: 1 / 1; margin: 0; }
.fx-dial .fx-max, .fx-dial .fx-alert { width: 100%; font-size: 14px; line-height: 20px; text-align: center; }
.fx-dial .fx-alert p { visibility: hidden; font-weight: 800; background: var(--fx-coral-pale); color: var(--fx-ink); }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-baby:checked) .fx-alert p { visibility: visible; }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-baby:checked) .fx-stop { fill: var(--fx-coral); animation: fx-dial-flash 0.4s steps(2, end) 3; }
.fx-dial .fx-messages > p { visibility: hidden; color: var(--fx-ink); }
.fx-dial .fx-descriptions { font-size: 14px; line-height: 1.5; }
.fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-nothing:checked) .fx-kn, .fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-tablets:checked) .fx-kt, .fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-sugar:checked) .fx-ks, .fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-potatoes:checked) .fx-kp, .fx-dial:has(#fx-dial-kitchen:checked):has(#fx-dial-baby:checked) .fx-kb, .fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-nothing:checked) .fx-bn, .fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-tablets:checked) .fx-bt, .fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-sugar:checked) .fx-bs, .fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-potatoes:checked) .fx-bp, .fx-dial:has(#fx-dial-bath:checked):has(#fx-dial-baby:checked) .fx-bb { visibility: visible; }
@container (max-width: 480px) { .fx-dial .fx-scale-choices, .fx-dial .fx-shelf { grid-template-columns: minmax(0, 1fr); } .fx-dial .fx-choice { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 76px; } }
@keyframes fx-dial-flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .fx-dial .fx-wheel { transition: none; } .fx-dial .fx-stop { animation: none; } }