.fx-pour { display: grid; gap: 14px; }
.fx-pour p { margin: 0; color: var(--fx-ink); font-size: 14px; line-height: 1.45; }
.fx-pour .fx-pour-how ol { margin: 0; padding-left: 24px; color: var(--fx-ink); font-size: 14px; line-height: 1.5; }
.fx-pour .fx-pour-how li + li { margin-top: 4px; }
.fx-pour .fx-pour-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-pour .fx-pour-controls legend { padding: 0; margin-bottom: 8px; color: var(--fx-ink); font-size: 16px; font-weight: 800; line-height: 1.4; }
.fx-pour .fx-pour-counter { margin-bottom: 8px; }
.fx-pour .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-pour .fx-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 8px 12px; color: var(--fx-ink); font-size: 16px; }
.fx-pour .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-pour .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-pour .fx-stage { --fx-pour-level: 0; --fx-pour-front: var(--fx-sky); --fx-pour-top: var(--fx-sky-pale); --fx-pour-side: var(--fx-sky); position: relative; box-sizing: border-box; min-width: 0; height: 480px; margin: 0; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 140px; grid-template-rows: auto minmax(0, 1fr); gap: 8px 12px; }
.fx-pour .fx-pour-caption { grid-column: 1 / -1; min-width: 0; }
.fx-pour .fx-pour-caption p + p { margin-top: 6px; }
.fx-pour .fx-pour-view { --fx-pour-scale: 1; position: relative; align-self: center; width: 100%; height: 220px; min-width: 0; perspective: 700px; }
.fx-pour .fx-pour-orbit { position: absolute; left: 50%; top: 78px; width: 210px; height: 56px; margin-left: -105px; transform: scale3d(var(--fx-pour-scale), var(--fx-pour-scale), var(--fx-pour-scale)); transform-style: preserve-3d; }
.fx-pour .fx-pour-model { position: relative; width: 100%; height: 100%; transform: rotateX(-24deg) rotateY(-28deg); transform-style: preserve-3d; transition: transform 0.6s; }
.fx-pour .fx-pour-face { position: absolute; box-sizing: border-box; border: 1px solid var(--fx-ink); }
.fx-pour .fx-pour-back { width: 210px; height: 56px; background: var(--fx-sun-pale); transform: translateZ(-42px); }
.fx-pour .fx-pour-left { width: 84px; height: 56px; background: var(--fx-sun); transform-origin: left center; transform: translateZ(-42px) rotateY(-90deg); }
.fx-pour .fx-pour-floor { top: 56px; width: 210px; height: 84px; background: var(--fx-paper); transform-origin: center top; transform: translateZ(-42px) rotateX(90deg); }
.fx-pour .fx-pour-liquid { position: absolute; top: 0; left: 0; width: 210px; height: calc(var(--fx-pour-level) * 56px); transform: translateY(calc((1 - var(--fx-pour-level)) * 56px)) translateZ(0); transform-style: preserve-3d; transition: height 0.6s, transform 0.6s; }
.fx-pour .fx-pour-liquid-front { width: 100%; height: 100%; background: var(--fx-pour-front); transform: translateZ(42px); }
.fx-pour .fx-pour-liquid-right { left: 100%; width: 84px; height: 100%; background: var(--fx-pour-side); transform-origin: left center; transform: translateZ(42px) rotateY(90deg); }
.fx-pour .fx-pour-liquid-top { width: 100%; height: 84px; background: var(--fx-pour-top); transform-origin: center top; transform: translateZ(-42px) rotateX(90deg); }
.fx-pour .fx-pour-rim { position: absolute; box-sizing: border-box; width: 210px; height: 84px; border: 2px dashed var(--fx-coral); transform-origin: center top; transform: translateZ(-42px) rotateX(90deg); }
.fx-pour .fx-pour-gap { position: absolute; box-sizing: border-box; width: 210px; height: calc((1 - var(--fx-pour-level)) * 56px); border: 2px solid var(--fx-coral); background: var(--fx-coral-pale); transform: translateZ(42.5px); visibility: hidden; }
.fx-pour .fx-pour-marker { position: absolute; z-index: 2; padding: 2px 4px; border-radius: 4px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; font-weight: 700; line-height: 1.3; }
.fx-pour .fx-pour-top-label { top: 0; left: 50%; transform: translateX(-50%); border-bottom: 2px dashed var(--fx-coral); white-space: nowrap; }
.fx-pour .fx-pour-depth-label { left: 0; top: 40px; }
.fx-pour .fx-pour-width-label { right: 0; bottom: 28px; }
.fx-pour .fx-pour-length-label { bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.fx-pour .fx-pour-gap-label { right: 0; top: 100px; background: var(--fx-coral-pale); visibility: hidden; }
.fx-pour .fx-pour-props { display: grid; grid-template-columns: minmax(0, 1fr); align-self: center; gap: 12px; min-width: 0; }
.fx-pour .fx-pour-prop { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; min-height: 76px; color: var(--fx-ink); font-size: 12px; line-height: 1.3; }
.fx-pour .fx-pour-prop svg { width: 44px; height: 48px; }
.fx-pour .fx-pour-sack path { fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-pour .fx-pour-sack .fx-pour-seam { fill: none; }
.fx-pour .fx-pour-mound path { fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-pour .fx-pour-heap, .fx-pour .fx-pour-unused { visibility: hidden; }
.fx-pour .fx-pour-live { display: grid; align-items: start; min-width: 0; }
.fx-pour .fx-pour-live > p { grid-area: 1 / 1; visibility: hidden; margin: 0; min-width: 0; }
.fx-pour:has(#fx-pour-n0:checked) .fx-pour-liquid { visibility: hidden; }
.fx-pour:has(#fx-pour-n1:checked) .fx-stage { --fx-pour-level: 0.1736111111; }
.fx-pour:has(#fx-pour-n2:checked) .fx-stage { --fx-pour-level: 0.3472222222; }
.fx-pour:has(#fx-pour-n3:checked) .fx-stage { --fx-pour-level: 0.5208333333; }
.fx-pour:has(#fx-pour-n4:checked) .fx-stage { --fx-pour-level: 0.6944444444; }
.fx-pour:has(#fx-pour-n5:checked) .fx-stage { --fx-pour-level: 0.8680555556; }
.fx-pour:has(#fx-pour-n6:checked) .fx-stage, .fx-pour:has(#fx-pour-n7:checked) .fx-stage { --fx-pour-level: 1; --fx-pour-front: var(--fx-mint); --fx-pour-top: var(--fx-mint-pale); --fx-pour-side: var(--fx-mint); }
.fx-pour:has(#fx-pour-n5:checked) .fx-pour-gap, .fx-pour:has(#fx-pour-n5:checked) .fx-pour-gap-label, .fx-pour:has(#fx-pour-n6:checked) .fx-pour-heap, .fx-pour:has(#fx-pour-n7:checked) .fx-pour-heap, .fx-pour:has(#fx-pour-n7:checked) .fx-pour-unused { visibility: visible; }
.fx-pour:has(#fx-pour-n6:checked) .fx-pour-rim { border-color: var(--fx-mint); box-shadow: 0 0 12px 4px var(--fx-mint); }
.fx-pour:has(#fx-pour-n0:checked) .fx-pour-s0, .fx-pour:has(#fx-pour-n1:checked) .fx-pour-s1, .fx-pour:has(#fx-pour-n2:checked) .fx-pour-s2, .fx-pour:has(#fx-pour-n3:checked) .fx-pour-s3, .fx-pour:has(#fx-pour-n4:checked) .fx-pour-s4, .fx-pour:has(#fx-pour-n5:checked) .fx-pour-s5, .fx-pour:has(#fx-pour-n6:checked) .fx-pour-s6, .fx-pour:has(#fx-pour-n7:checked) .fx-pour-s7 { visibility: visible; }
@container (max-width: 480px) { .fx-pour .fx-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 220px minmax(0, 1fr); } .fx-pour .fx-pour-view { --fx-pour-scale: 0.8; } .fx-pour .fx-pour-props { grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: start; gap: 8px; } .fx-pour .fx-pour-prop { grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px auto; align-content: start; justify-items: center; text-align: center; } }