.fx-weigh { --fx-weigh-angle: 10deg; display: grid; gap: 16px; }
.fx-weigh:has(.fx-weigh-relevant:checked) { --fx-weigh-angle: 0deg; }
.fx-weigh:has(#fx-weigh-natural:checked):has(#fx-weigh-hibiscus:checked) { --fx-weigh-angle: -10deg; }
.fx-weigh .fx-weigh-steps { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
.fx-weigh .fx-weigh-steps li + li { margin-top: 6px; }
.fx-weigh .fx-weigh-goal { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fx-ink); }
.fx-weigh .fx-weigh-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-weigh .fx-weigh-controls legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.fx-weigh .fx-weigh-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-weigh .fx-btn { box-sizing: border-box; display: flex; align-items: center; min-width: 0; min-height: 84px; padding: 12px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); text-align: left; font-size: 14px; line-height: 1.4; cursor: pointer; }
.fx-weigh .fx-btn > span { min-width: 0; overflow-wrap: anywhere; }
.fx-weigh .fx-weigh-kicker { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 400; }
.fx-weigh .fx-btn:has(input:checked) { background: var(--fx-mint-pale); border-color: var(--fx-ink); color: var(--fx-ink); }
.fx-weigh .fx-btn:focus-within { outline: 3px solid var(--fx-ink); outline-offset: 2px; }
.fx-weigh .fx-weigh-scene { position: relative; box-sizing: border-box; width: 100%; max-width: 680px; height: 520px; min-width: 0; margin: 0 auto; padding: 0; color: var(--fx-ink); background: var(--fx-sky-pale); }
.fx-weigh .fx-weigh-support { position: absolute; top: 82px; bottom: 56px; left: 50%; width: 8px; transform: translateX(-50%); background: var(--fx-ink); }
.fx-weigh .fx-weigh-foot { position: absolute; bottom: 48px; left: 40%; width: 20%; height: 10px; border-radius: 5px; background: var(--fx-ink); }
.fx-weigh .fx-weigh-beam { position: absolute; top: 82px; left: 25%; width: 50%; height: 6px; transform: rotate(var(--fx-weigh-angle)); transform-origin: 50% 0; transition: transform 0.55s; }
.fx-weigh .fx-weigh-beam-line { position: absolute; inset: 0; border-radius: 3px; background: var(--fx-ink); }
.fx-weigh .fx-weigh-hanger { position: absolute; top: 0; width: 86%; height: 320px; transform-origin: 50% 0; transform: rotate(calc(-1 * var(--fx-weigh-angle))); transition: transform 0.55s; }
.fx-weigh .fx-weigh-hanger::before { content: ""; position: absolute; z-index: -1; top: 6px; bottom: 0; left: 50%; border-left: 2px solid var(--fx-muted); }
.fx-weigh .fx-weigh-left { left: -43%; }
.fx-weigh .fx-weigh-right { left: 57%; }
.fx-weigh .fx-weigh-opinion { position: absolute; top: 18px; left: 0; width: 100%; }
.fx-weigh .fx-weigh-opinion-label { margin: 0; background: var(--fx-sky-pale); font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.fx-weigh .fx-weigh-bubble { box-sizing: border-box; margin: 8px 0 0; padding: 6px; border: 2px solid var(--fx-ink); border-radius: 12px; background: var(--fx-paper); font-size: 14px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.fx-weigh .fx-weigh-pieces { position: absolute; right: 0; bottom: 18px; left: 0; height: 160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 76px); gap: 8px 4px; }
.fx-weigh .fx-weigh-piece { box-sizing: border-box; visibility: hidden; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 2px; border: 1px solid var(--fx-ink); color: var(--fx-ink); font-size: 12px; line-height: 14px; text-align: center; overflow-wrap: anywhere; transform: translateY(-16px); transition: transform 0.35s; }
.fx-weigh .fx-weigh-piece b, .fx-weigh .fx-weigh-piece span { min-width: 0; }
.fx-weigh .fx-weigh-heavy { background: var(--fx-mint); border-bottom-width: 4px; }
.fx-weigh .fx-weigh-paper { background: var(--fx-paper); border-style: dashed; }
.fx-weigh:has(#fx-weigh-natural:checked) .fx-weigh-natural, .fx-weigh:has(#fx-weigh-hibiscus:checked) .fx-weigh-hibiscus, .fx-weigh:has(#fx-weigh-stall:checked) .fx-weigh-stall, .fx-weigh:has(#fx-weigh-rain:checked) .fx-weigh-rain { visibility: visible; transform: translateY(0); }
.fx-weigh .fx-weigh-pan-edge { position: absolute; right: 0; bottom: 0; left: 0; height: 6px; border-radius: 50%; background: var(--fx-ink); }
.fx-weigh .fx-weigh-pan-label { position: absolute; top: calc(100% + 10px); left: 0; width: 100%; margin: 0; font-size: 14px; font-weight: 800; line-height: 1.25; text-align: center; }
.fx-weigh .fx-weigh-doubt { position: absolute; box-sizing: border-box; right: 10%; bottom: 6px; left: 10%; height: 80px; display: grid; place-items: center; border: 6px solid var(--fx-muted); border-radius: 14px 14px 3px 3px; background: var(--fx-paper); font-size: 14px; }
.fx-weigh .fx-weigh-caption { position: absolute; right: 0; bottom: 16px; left: 0; font-size: 16px; text-align: center; }
.fx-weigh .fx-weigh-stars { position: absolute; top: 16px; right: 4%; width: 38%; visibility: hidden; color: var(--fx-ink); font-size: 30px; text-align: center; }
.fx-weigh:has(#fx-weigh-natural:checked):has(#fx-weigh-hibiscus:checked):not(:has(.fx-weigh-irrelevant:checked)) .fx-weigh-stars { visibility: visible; }
.fx-weigh:has(#fx-weigh-natural:checked):has(#fx-weigh-hibiscus:checked):has(.fx-weigh-irrelevant:checked) .fx-weigh-paper { animation: fx-weigh-flash 0.6s 2; }
.fx-weigh .fx-weigh-status { display: grid; min-width: 0; }
.fx-weigh .fx-weigh-status > p { grid-area: 1 / 1; visibility: hidden; box-sizing: border-box; min-width: 0; margin: 0; padding: 12px; font-size: 14px; line-height: 1.5; color: var(--fx-ink); overflow-wrap: anywhere; }
.fx-weigh:not(:has(input:checked)) .fx-weigh-s0, .fx-weigh:has(#fx-weigh-natural:checked):not(:has(#fx-weigh-hibiscus:checked)):not(:has(.fx-weigh-irrelevant:checked)) .fx-weigh-s1, .fx-weigh:has(#fx-weigh-hibiscus:checked):not(:has(#fx-weigh-natural:checked)):not(:has(.fx-weigh-irrelevant:checked)) .fx-weigh-s2, .fx-weigh:has(#fx-weigh-natural:checked):has(#fx-weigh-hibiscus:checked):not(:has(.fx-weigh-irrelevant:checked)) .fx-weigh-s3, .fx-weigh:not(:has(.fx-weigh-relevant:checked)):has(.fx-weigh-irrelevant:checked) .fx-weigh-s4, .fx-weigh:has(#fx-weigh-natural:checked):not(:has(#fx-weigh-hibiscus:checked)):has(.fx-weigh-irrelevant:checked) .fx-weigh-s5, .fx-weigh:has(#fx-weigh-hibiscus:checked):not(:has(#fx-weigh-natural:checked)):has(.fx-weigh-irrelevant:checked) .fx-weigh-s5, .fx-weigh:has(#fx-weigh-natural:checked):has(#fx-weigh-hibiscus:checked):has(.fx-weigh-irrelevant:checked) .fx-weigh-s6 { visibility: visible; }
@container (max-width: 480px) { .fx-weigh .fx-weigh-choices { grid-template-columns: minmax(0, 1fr); } .fx-weigh .fx-weigh-scene { height: 660px; } .fx-weigh .fx-weigh-beam { top: 92px; } .fx-weigh .fx-weigh-support { top: 92px; } .fx-weigh .fx-weigh-hanger { height: 440px; } }
@keyframes fx-weigh-flash { 0%, 100% { background: var(--fx-paper); } 50% { background: var(--fx-sun-pale); } }
@media (prefers-reduced-motion: reduce) { .fx-weigh .fx-weigh-beam, .fx-weigh .fx-weigh-hanger, .fx-weigh .fx-weigh-piece { transition: none; animation: none; } }