.fx-budget { display: grid; }
.fx-budget .fx-budget-wrap { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; }
.fx-budget .fx-budget-wrap * { box-sizing: border-box; }
.fx-budget .fx-budget-wrap > .fx-note { margin: 0; }
.fx-budget .fx-budget-steps { margin: 0; padding-left: 24px; }
.fx-budget .fx-budget-steps li + li { margin-top: 6px; }
.fx-budget .fx-budget-goal { margin: 0; }
.fx-budget .fx-budget-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.fx-budget .fx-budget-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-budget .fx-budget-control legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.fx-budget .fx-budget-controls .fx-budget-choice { display: grid; align-content: center; gap: 6px; min-height: 100px; width: 100%; margin: 0; padding: 12px; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); text-align: left; white-space: normal; cursor: pointer; }
.fx-budget .fx-budget-controls .fx-budget-choice:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-budget .fx-budget-choice:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-budget .fx-budget-hint { font-size: 12px; font-weight: 800; }
.fx-budget .fx-budget-swap { display: grid; }
.fx-budget .fx-budget-swap > span { grid-area: 1 / 1; }
.fx-budget .fx-budget-cut { visibility: hidden; }
.fx-budget:has(#fx-budget-cut:checked) .fx-budget-uncut { visibility: hidden; }
.fx-budget:has(#fx-budget-cut:checked) .fx-budget-choice .fx-budget-cut { visibility: visible; }
.fx-budget .fx-budget-scene { --fx-budget-angle: -12deg; position: relative; width: 100%; max-width: 600px; height: 390px; margin: 0 auto; padding: 0; background: var(--fx-sky-pale); }
.fx-budget .fx-budget-budget-label, .fx-budget .fx-budget-bills-label { position: absolute; top: 14px; width: 44%; padding: 0 5px; font-size: 14px; line-height: 1.3; text-align: center; }
.fx-budget .fx-budget-budget-label { left: 0; }
.fx-budget .fx-budget-bills-label { right: 0; }
.fx-budget .fx-budget-post { position: absolute; top: 120px; bottom: 43px; left: calc(50% - 5px); width: 10px; border: 2px solid var(--fx-ink); background: var(--fx-sun); }
.fx-budget .fx-budget-base { position: absolute; bottom: 43px; left: 35%; width: 30%; height: 18px; border: 2px solid var(--fx-ink); border-radius: 8px 8px 0 0; background: var(--fx-sun); }
.fx-budget .fx-budget-pivot { position: absolute; top: 106px; left: calc(50% - 14px); width: 28px; height: 28px; border: 3px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sun); }
.fx-budget .fx-budget-beam { position: absolute; top: 118px; left: 22%; width: 56%; height: 8px; border-radius: 4px; background: var(--fx-ink); transform: rotate(var(--fx-budget-angle)); transition: transform 0.6s; }
.fx-budget .fx-budget-hanger { position: absolute; top: 4px; width: 70%; height: 172px; margin-left: -35%; transform-origin: 50% 0; transform: rotate(calc(0deg - var(--fx-budget-angle))); transition: transform 0.6s; }
.fx-budget .fx-budget-left { left: 0; }
.fx-budget .fx-budget-right { left: 100%; }
.fx-budget .fx-budget-ropes { position: absolute; top: 0; left: 0; width: 100%; height: 172px; color: var(--fx-ink); stroke-width: 2; }
.fx-budget path { vector-effect: non-scaling-stroke; }
.fx-budget .fx-budget-pan { position: absolute; top: 172px; left: 0; width: 100%; height: 9px; border: 3px solid var(--fx-ink); border-top: 0; border-radius: 0 0 12px 12px; background: var(--fx-sun); }
.fx-budget .fx-budget-notes { position: absolute; bottom: 8px; left: 10%; width: 80%; min-height: 54px; padding: 8px 2px; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-mint); box-shadow: 0 4px 0 var(--fx-ink), 0 7px 0 var(--fx-mint), 0 9px 0 var(--fx-ink); text-align: center; }
.fx-budget .fx-budget-notes strong { display: block; font-size: 18px; }
.fx-budget .fx-budget-notes small { display: block; font-size: 12px; }
.fx-budget .fx-budget-load { position: absolute; bottom: 0; left: 5%; width: 90%; height: 160px; }
.fx-budget .fx-budget-bill { position: absolute; bottom: 8px; left: 0; display: grid; align-content: center; gap: 3px; width: 100%; height: 76px; padding: 4px; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); font-size: 12px; line-height: 1.15; text-align: center; visibility: hidden; transition: bottom 0.6s, height 0.6s; }
.fx-budget .fx-budget-bill strong { font-size: 14px; }
.fx-budget .fx-budget-tiler-bill { background: var(--fx-sun-pale); }
.fx-budget .fx-budget-plumber-bill { background: var(--fx-coral-pale); }
.fx-budget:has(#fx-budget-tiler:checked) .fx-budget-tiler-bill { visibility: visible; }
.fx-budget:has(#fx-budget-plumber:checked) .fx-budget-plumber-bill { visibility: visible; }
.fx-budget:has(#fx-budget-tiler:checked) .fx-budget-plumber-bill { bottom: 88px; }
.fx-budget:has(#fx-budget-cut:checked) .fx-budget-plumber-bill { height: 68px; }
.fx-budget:has(#fx-budget-plumber:checked):has(#fx-budget-cut:checked) .fx-budget-bill .fx-budget-cut { visibility: visible; }
.fx-budget:has(#fx-budget-tiler:checked) .fx-budget-scene { --fx-budget-angle: -6deg; }
.fx-budget:has(#fx-budget-plumber:checked) .fx-budget-scene { --fx-budget-angle: -6.3deg; }
.fx-budget:has(#fx-budget-plumber:checked):has(#fx-budget-cut:checked) .fx-budget-scene { --fx-budget-angle: -7deg; }
.fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-plumber:checked) .fx-budget-scene { --fx-budget-angle: 7deg; }
.fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-plumber:checked):has(#fx-budget-cut:checked) .fx-budget-scene { --fx-budget-angle: -1deg; }
.fx-budget .fx-budget-tags { position: absolute; bottom: 6px; left: 8px; right: 8px; display: grid; justify-items: center; }
.fx-budget .fx-budget-tags > span { grid-area: 1 / 1; margin: 0; padding: 5px 12px; font-size: 14px; visibility: hidden; }
.fx-budget .fx-budget-messages { display: grid; min-width: 0; }
.fx-budget .fx-budget-messages > p { grid-area: 1 / 1; margin: 0; padding: 12px; visibility: hidden; }
.fx-budget:not(:has(input:checked)) .fx-budget-s000, .fx-budget:has(#fx-budget-cut:checked):not(:has(#fx-budget-tiler:checked)):not(:has(#fx-budget-plumber:checked)) .fx-budget-s001, .fx-budget:has(#fx-budget-tiler:checked):not(:has(#fx-budget-plumber:checked)):not(:has(#fx-budget-cut:checked)) .fx-budget-s100, .fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-cut:checked):not(:has(#fx-budget-plumber:checked)) .fx-budget-s101, .fx-budget:has(#fx-budget-plumber:checked):not(:has(#fx-budget-tiler:checked)):not(:has(#fx-budget-cut:checked)) .fx-budget-s010, .fx-budget:has(#fx-budget-plumber:checked):has(#fx-budget-cut:checked):not(:has(#fx-budget-tiler:checked)) .fx-budget-s011, .fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-plumber:checked):not(:has(#fx-budget-cut:checked)) .fx-budget-s110, .fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-plumber:checked):has(#fx-budget-cut:checked) .fx-budget-s111 { visibility: visible; }
.fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-plumber:checked):not(:has(#fx-budget-cut:checked)) .fx-budget-over, .fx-budget:has(#fx-budget-tiler:checked):has(#fx-budget-plumber:checked):has(#fx-budget-cut:checked) .fx-budget-fits { visibility: visible; }
@container (max-width: 480px) { .fx-budget .fx-budget-controls { grid-template-columns: minmax(0, 1fr); } .fx-budget .fx-budget-controls .fx-budget-choice { min-height: 56px; } }
@media (prefers-reduced-motion: reduce) { .fx-budget .fx-budget-beam, .fx-budget .fx-budget-hanger, .fx-budget .fx-budget-bill { transition: none; } }