.fx-predict{display:grid;gap:16px;}
.fx-predict .fx-predict-steps{margin:0;padding-left:24px;}
.fx-predict .fx-predict-steps li+li{margin-top:6px;}
.fx-predict .fx-predict-goal{margin:0;color:var(--fx-ink);}
.fx-predict .fx-predict-figure{margin:0;min-width:0;}
.fx-predict .fx-predict-scene{--fx-predict-size:min(calc(100cqw - 48px),280px);display:grid;min-width:0;}
.fx-predict .fx-predict-controls{grid-area:1 / 1;position:relative;z-index:2;height:540px;min-width:0;margin:0;padding:0;border:0;pointer-events:none;}
.fx-predict .fx-predict-controls legend{position:absolute;top:8px;left:8px;width:calc(100% - 16px);padding:0;font-size:14px;line-height:1.3;font-weight:800;color:var(--fx-ink);}
.fx-predict .fx-predict-controls .fx-btn{box-sizing:border-box;min-height:28px;padding:4px 8px;font-size:12px;line-height:16px;color:var(--fx-ink);background:var(--fx-paper);border:2px solid var(--fx-ink);pointer-events:auto;cursor:pointer;}
.fx-predict .fx-predict-controls .fx-btn:has(input:checked){background:var(--fx-sun);color:var(--fx-ink);}
.fx-predict .fx-predict-controls .fx-btn:has(input:focus-visible){outline:3px solid var(--fx-grape);outline-offset:3px;}
.fx-predict .fx-predict-clear{position:absolute;top:48px;left:8px;}
.fx-predict .fx-predict-taps{position:absolute;top:calc(140px + var(--fx-predict-size));left:34px;width:var(--fx-predict-size);height:64px;}
.fx-predict .fx-predict-controls .fx-predict-tap{position:absolute;top:0;left:calc(var(--fx-predict-x) * 1%);display:grid;place-items:center;width:28px;min-width:28px;height:28px;padding:0;border-radius:50%;transform:translateX(-50%);}
.fx-predict .fx-predict-controls .fx-predict-last{top:32px;}
.fx-predict .fx-predict-hint{position:absolute;top:40px;left:60%;width:84px;margin:0;transform:translateX(-50%);font-size:12px;line-height:18px;text-align:center;color:var(--fx-ink);}
.fx-predict .fx-predict-hint::before{content:"";position:absolute;height:12px;top:-12px;left:50%;border-left:2px dotted var(--fx-ink);}
.fx-predict .fx-predict-hint::after{content:"";position:absolute;top:-13px;left:calc(50% - 3px);width:6px;height:6px;border-left:2px solid var(--fx-ink);border-top:2px solid var(--fx-ink);transform:rotate(45deg);}
.fx-predict .fx-predict-stage{grid-area:1 / 1;position:relative;box-sizing:border-box;height:540px;min-width:0;padding:0;margin:0;color:var(--fx-ink);}
.fx-predict .fx-predict-english{position:absolute;top:86px;left:34px;margin:0;font-size:12px;line-height:18px;font-weight:700;}
.fx-predict .fx-predict-maths{position:absolute;top:calc(216px + var(--fx-predict-size));left:0;width:100%;margin:0;font-size:12px;line-height:18px;text-align:center;font-weight:700;}
.fx-predict .fx-predict-plot{position:absolute;top:112px;left:34px;box-sizing:border-box;width:var(--fx-predict-size);height:var(--fx-predict-size);border-left:2px solid var(--fx-ink);border-bottom:2px solid var(--fx-ink);background:var(--fx-paper);}
.fx-predict .fx-predict-svg{position:absolute;inset:0;width:100%;height:100%;fill:none;}
.fx-predict .fx-predict-svg path{vector-effect:non-scaling-stroke;}
.fx-predict .fx-predict-grid{stroke:var(--fx-sky);stroke-width:1;}
.fx-predict .fx-predict-crosses{stroke:var(--fx-ink);stroke-width:1.8;stroke-linecap:round;}
.fx-predict .fx-predict-fit{stroke:var(--fx-grape);stroke-width:3;}
.fx-predict .fx-predict-ticks{position:absolute;inset:0;font-size:12px;line-height:16px;}
.fx-predict .fx-predict-y{position:absolute;right:100%;bottom:calc(var(--fx-predict-t) * 1%);width:24px;margin-right:6px;text-align:right;transform:translateY(50%);}
.fx-predict .fx-predict-x{position:absolute;top:100%;left:calc(var(--fx-predict-t) * 1%);margin-top:5px;transform:translateX(-50%);}
.fx-predict .fx-predict-state{visibility:hidden;}
.fx-predict:has(#fx-predict-start:checked) .fx-predict-s0,.fx-predict:has(#fx-predict-20:checked) .fx-predict-s20,.fx-predict:has(#fx-predict-40:checked) .fx-predict-s40,.fx-predict:has(#fx-predict-60:checked) .fx-predict-s60,.fx-predict:has(#fx-predict-80:checked) .fx-predict-s80,.fx-predict:has(#fx-predict-92:checked) .fx-predict-s92{visibility:visible;}
.fx-predict .fx-predict-guide{position:absolute;inset:0;pointer-events:none;}
.fx-predict .fx-predict-up{position:absolute;left:calc(var(--fx-predict-x) * 1%);bottom:0;height:calc(var(--fx-predict-y) * 1%);border-left:2px dashed var(--fx-coral);transform-origin:bottom;animation:fx-predict-rise 0.45s both;}
.fx-predict .fx-predict-across{position:absolute;left:0;bottom:calc(var(--fx-predict-y) * 1%);width:calc(var(--fx-predict-x) * 1%);border-top:2px dashed var(--fx-coral);transform-origin:right;animation:fx-predict-reach 0.45s 0.45s both;}
.fx-predict:has(#fx-predict-20:not(:checked)) .fx-predict-s20>div,.fx-predict:has(#fx-predict-40:not(:checked)) .fx-predict-s40>div,.fx-predict:has(#fx-predict-60:not(:checked)) .fx-predict-s60>div,.fx-predict:has(#fx-predict-80:not(:checked)) .fx-predict-s80>div,.fx-predict:has(#fx-predict-92:not(:checked)) .fx-predict-s92>div{animation:none;}
.fx-predict .fx-predict-dot{position:absolute;left:calc(var(--fx-predict-x) * 1%);bottom:calc(var(--fx-predict-y) * 1%);width:6px;height:6px;border:1px solid var(--fx-ink);border-radius:50%;background:var(--fx-coral);transform:translate(-50%,50%);}
.fx-predict .fx-predict-landing{position:absolute;left:4px;bottom:calc(var(--fx-predict-y) * 1%);transform:translateY(50%);padding:0 3px;border:1px solid var(--fx-coral);background:var(--fx-sun-pale);color:var(--fx-ink);font-size:12px;line-height:18px;font-weight:800;}
.fx-predict .fx-predict-sam{position:absolute;left:0;bottom:60%;width:24%;border-top:2px dotted var(--fx-coral);}
.fx-predict .fx-predict-sam span{position:absolute;left:4px;bottom:4px;width:106px;background:var(--fx-coral-pale);color:var(--fx-ink);font-size:12px;line-height:18px;}
.fx-predict .fx-predict-legend{margin-top:12px;gap:10px 18px;color:var(--fx-ink);font-size:12px;}
.fx-predict .fx-predict-legend>span{display:flex;align-items:center;gap:6px;}
.fx-predict .fx-predict-cross-key{font-size:20px;line-height:20px;}
.fx-predict .fx-predict-line-key{width:24px;border-top:3px solid var(--fx-grape);}
.fx-predict .fx-predict-guide-key{width:24px;border-top:2px dashed var(--fx-coral);}
.fx-predict .fx-predict-readouts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
.fx-predict .fx-predict-says{display:grid;min-width:0;}
.fx-predict .fx-predict-says>p{grid-area:1 / 1;margin:0;visibility:hidden;}
@container (max-width:480px){.fx-predict .fx-predict-readouts{grid-template-columns:1fr;}}
@keyframes fx-predict-rise{from{transform:scaleY(0);}to{transform:scaleY(1);}}
@keyframes fx-predict-reach{from{transform:scaleX(0);}to{transform:scaleX(1);}}
@media (prefers-reduced-motion:reduce){.fx-predict .fx-predict-up,.fx-predict .fx-predict-across{animation:none;}}