.fx-takeaway { --fx-u: 8px; display: grid; gap: 14px; }
.fx-takeaway > div, .fx-takeaway > p { min-width: 0; color: var(--fx-ink); font-size: 16px; }
.fx-takeaway .fx-takeaway-steps { margin: 0; padding-left: 24px; line-height: 1.5; }
.fx-takeaway .fx-takeaway-goal, .fx-takeaway .fx-takeaway-read { margin: 0; line-height: 1.5; }
.fx-takeaway .fx-takeaway-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fx-takeaway fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-takeaway legend { padding: 0; margin-bottom: 10px; font-weight: 700; line-height: 1.4; }
.fx-takeaway .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-takeaway .fx-btn { min-width: 36px; min-height: 36px; padding: 7px; box-sizing: border-box; justify-content: center; color: var(--fx-ink); }
.fx-takeaway .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint); }
.fx-takeaway .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-takeaway .fx-takeaway-stage { height: 420px; padding: 12px; box-sizing: border-box; display: grid; grid-template-rows: 180px 200px; align-content: start; gap: 12px; }
.fx-takeaway .fx-takeaway-sum { width: min(100%, 330px); height: 180px; table-layout: fixed; border-collapse: collapse; margin: 0 auto; }
.fx-takeaway .fx-takeaway-sum th { font-size: 12px; padding: 4px; text-align: center; }
.fx-takeaway .fx-takeaway-sum td { font-size: 26px; font-weight: 700; text-align: center; padding: 2px; }
.fx-takeaway .fx-takeaway-sign { width: 24px; }
.fx-takeaway .fx-takeaway-result td { border-top: 2px solid var(--fx-ink); }
.fx-takeaway .fx-takeaway-box { display: inline-grid; place-items: center; width: 40px; height: 36px; border: 2px solid var(--fx-ink); background: var(--fx-paper); }
.fx-takeaway .fx-takeaway-a2, .fx-takeaway .fx-takeaway-a5 { visibility: hidden; }
.fx-takeaway:has(#fx-takeaway-c4:checked) .fx-takeaway-a5, .fx-takeaway:has(#fx-takeaway-c4:checked):has(#fx-takeaway-r2:checked) .fx-takeaway-a2 { visibility: visible; }
.fx-takeaway .fx-takeaway-drawing { position: relative; height: 200px; min-width: 0; }
.fx-takeaway .fx-takeaway-tray, .fx-takeaway .fx-takeaway-bin { position: absolute; top: 0; height: 100%; box-sizing: border-box; border: 1px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); }
.fx-takeaway .fx-takeaway-tray { left: 0; width: 65%; }
.fx-takeaway .fx-takeaway-bin { left: 68%; width: 32%; background: var(--fx-coral-pale); }
.fx-takeaway .fx-takeaway-tray b, .fx-takeaway .fx-takeaway-bin b { display: block; padding: 8px 3px; font-size: 14px; text-align: center; line-height: 1.25; }
.fx-takeaway .fx-takeaway-lr, .fx-takeaway .fx-takeaway-lc { position: absolute; top: 43px; width: 30%; text-align: center; font-size: 12px; line-height: 1.3; font-weight: 700; }
.fx-takeaway .fx-takeaway-lr { left: 1%; }
.fx-takeaway .fx-takeaway-lc { left: 33%; }
.fx-takeaway .fx-takeaway-r, .fx-takeaway .fx-takeaway-c { position: absolute; inset: 0; }
.fx-takeaway .fx-takeaway-r svg, .fx-takeaway .fx-takeaway-c span { position: absolute; top: var(--fx-y); transition: left 0.35s, top 0.35s; }
.fx-takeaway .fx-takeaway-r svg { left: 3%; width: calc(10 * var(--fx-u)); height: var(--fx-u); }
.fx-takeaway .fx-takeaway-r rect { fill: var(--fx-sky); stroke: var(--fx-ink); stroke-width: 1; }
.fx-takeaway .fx-takeaway-r path { fill: none; stroke: var(--fx-ink); stroke-width: 1; }
.fx-takeaway .fx-takeaway-c span { left: var(--fx-x); width: var(--fx-u); height: var(--fx-u); box-sizing: border-box; background: var(--fx-sun); border: 1px solid var(--fx-ink); }
.fx-takeaway:has(#fx-takeaway-c1:checked) .fx-takeaway-c span:nth-child(1), .fx-takeaway:has(#fx-takeaway-c2:checked) .fx-takeaway-c span:nth-child(-n + 2), .fx-takeaway:has(#fx-takeaway-c3:checked) .fx-takeaway-c span:nth-child(-n + 3), .fx-takeaway:has(#fx-takeaway-c4:checked) .fx-takeaway-c span:nth-child(-n + 4) { left: var(--fx-bx); top: var(--fx-by); }
.fx-takeaway:has(#fx-takeaway-r1:checked) .fx-takeaway-r svg:nth-child(1), .fx-takeaway:has(#fx-takeaway-r2:checked) .fx-takeaway-r svg:nth-child(-n + 2) { left: 70%; }
.fx-takeaway .fx-takeaway-live { display: grid; min-width: 0; }
.fx-takeaway .fx-takeaway-live p { grid-area: 1 / 1; visibility: hidden; margin: 0; line-height: 1.5; }
.fx-takeaway .fx-takeaway-description p { font-size: 14px; }
.fx-takeaway:has(#fx-takeaway-c0:checked):has(#fx-takeaway-r0:checked) .fx-takeaway-s00, .fx-takeaway:has(#fx-takeaway-c1:checked):has(#fx-takeaway-r0:checked) .fx-takeaway-s10, .fx-takeaway:has(#fx-takeaway-c2:checked):has(#fx-takeaway-r0:checked) .fx-takeaway-s20, .fx-takeaway:has(#fx-takeaway-c3:checked):has(#fx-takeaway-r0:checked) .fx-takeaway-s30, .fx-takeaway:has(#fx-takeaway-c4:checked):has(#fx-takeaway-r0:checked) .fx-takeaway-s40, .fx-takeaway:has(#fx-takeaway-c0:checked):has(#fx-takeaway-r1:checked) .fx-takeaway-s01, .fx-takeaway:has(#fx-takeaway-c1:checked):has(#fx-takeaway-r1:checked) .fx-takeaway-s11, .fx-takeaway:has(#fx-takeaway-c2:checked):has(#fx-takeaway-r1:checked) .fx-takeaway-s21, .fx-takeaway:has(#fx-takeaway-c3:checked):has(#fx-takeaway-r1:checked) .fx-takeaway-s31, .fx-takeaway:has(#fx-takeaway-c4:checked):has(#fx-takeaway-r1:checked) .fx-takeaway-s41, .fx-takeaway:has(#fx-takeaway-c0:checked):has(#fx-takeaway-r2:checked) .fx-takeaway-s02, .fx-takeaway:has(#fx-takeaway-c1:checked):has(#fx-takeaway-r2:checked) .fx-takeaway-s12, .fx-takeaway:has(#fx-takeaway-c2:checked):has(#fx-takeaway-r2:checked) .fx-takeaway-s22, .fx-takeaway:has(#fx-takeaway-c3:checked):has(#fx-takeaway-r2:checked) .fx-takeaway-s32, .fx-takeaway:has(#fx-takeaway-c4:checked):has(#fx-takeaway-r2:checked) .fx-takeaway-s42 { visibility: visible; }
@container (max-width: 480px) { .fx-takeaway .fx-takeaway-controls { grid-template-columns: 1fr; } .fx-takeaway .fx-takeaway-drawing { --fx-u: 6px; } }
@media (prefers-reduced-motion: reduce) { .fx-takeaway .fx-takeaway-r svg, .fx-takeaway .fx-takeaway-c span { transition: none; } }