.fx-plate { --fx-p: 0; --fx-g: 0; --fx-v: 0; }
.fx-plate:has(#fx-plate-protein:checked) { --fx-p: 1; }
.fx-plate:has(#fx-plate-grains:checked) { --fx-g: 1; }
.fx-plate:has(#fx-plate-veggies:checked) { --fx-v: 1; }
.fx-plate .fx-plate-content { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.4; }
.fx-plate .fx-plate-steps { margin: 0; padding-left: 24px; }
.fx-plate .fx-plate-steps li + li { margin-top: 5px; }
.fx-plate .fx-plate-goal { margin: 0; }
.fx-plate .fx-plate-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-plate .fx-plate-controls legend { max-width: 100%; padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.fx-plate .fx-plate-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-plate .fx-btn { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 8px; min-width: 0; min-height: 76px; margin: 0; padding: 10px; box-sizing: border-box; border: 2px solid var(--fx-muted); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); text-align: left; cursor: pointer; font-size: 16px; }
.fx-plate .fx-btn:has(input:checked) { background: var(--fx-sky-pale); border-color: var(--fx-ink); color: var(--fx-ink); }
.fx-plate .fx-btn:focus-within { outline: 3px solid var(--fx-grape); outline-offset: 2px; }
.fx-plate .fx-plate-icon { width: 40px; height: 40px; }
.fx-plate .fx-plate-card-words { display: grid; gap: 2px; }
.fx-plate .fx-plate-card-tick { visibility: hidden; font-weight: 800; }
.fx-plate .fx-btn:has(input:checked) .fx-plate-card-tick { visibility: visible; }
.fx-plate .fx-plate-scene { height: 432px; box-sizing: border-box; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--fx-ink); }
.fx-plate .fx-plate-title { margin: 0; text-align: center; }
.fx-plate .fx-plate-canvas { position: relative; width: min(100%, 300px); aspect-ratio: 1; flex: 0 0 auto; }
.fx-plate .fx-plate-canvas svg { display: block; width: 100%; height: 100%; }
.fx-plate .fx-plate-dish { fill: var(--fx-paper); }
.fx-plate .fx-plate-rim { fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-plate .fx-plate-divisions { fill: none; stroke: var(--fx-ink); stroke-width: 2; stroke-dasharray: 5 5; opacity: 0.4; }
.fx-plate .fx-plate-protein-fill, .fx-plate .fx-plate-grains-fill, .fx-plate .fx-plate-veggies-fill { visibility: hidden; }
.fx-plate .fx-plate-grains-fill { fill: var(--fx-sun); }
.fx-plate .fx-plate-veggies-fill { fill: var(--fx-mint); }
.fx-plate:has(#fx-plate-protein:checked) .fx-plate-protein-fill, .fx-plate:has(#fx-plate-grains:checked) .fx-plate-grains-fill, .fx-plate:has(#fx-plate-veggies:checked) .fx-plate-veggies-fill { visibility: visible; }
.fx-plate .fx-plate-meat { fill: var(--fx-sun); }
.fx-plate .fx-plate-warm { fill: var(--fx-coral); opacity: 0.65; }
.fx-plate .fx-plate-shade { fill: var(--fx-ink); opacity: 0.45; }
.fx-plate .fx-plate-bone { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-plate .fx-plate-food-outline { fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-plate .fx-plate-rice { fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 2; }
.fx-plate .fx-plate-rice-marks { fill: none; stroke: var(--fx-ink); stroke-width: 2; stroke-linecap: round; }
.fx-plate .fx-plate-stem { fill: var(--fx-mint-pale); stroke: var(--fx-ink); stroke-width: 2; }
.fx-plate .fx-plate-broccoli { fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 2; }
.fx-plate .fx-plate-glow { fill: none; stroke: var(--fx-mint); stroke-width: 12; opacity: 0.65; stroke-linejoin: round; }
.fx-plate .fx-plate-part { position: absolute; display: grid; text-align: center; font-size: 14px; line-height: 1.3; color: var(--fx-ink); }
.fx-plate .fx-plate-protein-label { top: 23%; left: 52%; width: 44%; }
.fx-plate .fx-plate-grains-label { top: 63%; left: 52%; width: 44%; }
.fx-plate .fx-plate-veggies-label { top: 40%; left: 4%; width: 43%; }
.fx-plate .fx-plate-flag { position: absolute; top: 65%; left: 5%; width: 40%; box-sizing: border-box; padding: 4px; border: 1px solid var(--fx-ink); border-radius: 6px; background: var(--fx-mint-pale); color: var(--fx-ink); font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
.fx-plate .fx-plate-progress { width: min(100%, 300px); }
.fx-plate .fx-plate-progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fx-plate .fx-plate-totals { display: grid; text-align: right; }
.fx-plate .fx-plate-totals > span { grid-area: 1 / 1; }
.fx-plate .fx-plate-track { position: relative; height: 18px; overflow: hidden; border: 1px solid var(--fx-ink); border-radius: 5px; background: var(--fx-paper); }
.fx-plate .fx-plate-bar { height: 100%; width: calc(var(--fx-p) * 25% + var(--fx-g) * 25% + var(--fx-v) * 50%); background: var(--fx-mint); }
.fx-plate .fx-plate-mark { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--fx-ink); opacity: 0.5; }
.fx-plate .fx-plate-mark-one { left: 25%; }
.fx-plate .fx-plate-mark-two { left: 50%; }
.fx-plate .fx-plate-mark-three { left: 75%; }
.fx-plate .fx-plate-messages { display: grid; }
.fx-plate .fx-plate-messages > p { display: block; grid-area: 1 / 1; margin: 0; align-self: stretch; color: var(--fx-ink); }
.fx-plate .fx-plate-state { visibility: hidden; }
.fx-plate:not(:has(input:checked)) .fx-plate-s0, .fx-plate:has(#fx-plate-protein:checked):not(:has(#fx-plate-grains:checked)):not(:has(#fx-plate-veggies:checked)) .fx-plate-s1, .fx-plate:has(#fx-plate-grains:checked):not(:has(#fx-plate-protein:checked)):not(:has(#fx-plate-veggies:checked)) .fx-plate-s2, .fx-plate:has(#fx-plate-veggies:checked):not(:has(#fx-plate-protein:checked)):not(:has(#fx-plate-grains:checked)) .fx-plate-s3, .fx-plate:has(#fx-plate-protein:checked):has(#fx-plate-grains:checked):not(:has(#fx-plate-veggies:checked)) .fx-plate-s4, .fx-plate:has(#fx-plate-protein:checked):has(#fx-plate-veggies:checked):not(:has(#fx-plate-grains:checked)) .fx-plate-s5, .fx-plate:has(#fx-plate-grains:checked):has(#fx-plate-veggies:checked):not(:has(#fx-plate-protein:checked)) .fx-plate-s6, .fx-plate:has(#fx-plate-protein:checked):has(#fx-plate-grains:checked):has(#fx-plate-veggies:checked) .fx-plate-s7 { visibility: visible; }
@container (max-width: 480px) { .fx-plate .fx-plate-choices { grid-template-columns: minmax(0, 1fr); } }