.fx-agree { --fx-tilt: -10deg; --fx-beam: var(--fx-ink); display: grid; }
.fx-agree .fx-agree-wrap { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-agree .fx-agree-wrap p { margin: 0; }
.fx-agree .fx-agree-steps { display: grid; gap: 6px; margin: 0; padding-left: 24px; }
.fx-agree .fx-agree-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-agree .fx-agree-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-agree .fx-agree-group legend { max-width: 100%; margin-bottom: 8px; padding: 0; font-size: 16px; font-weight: 700; }
.fx-agree .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-agree .fx-btn { position: relative; display: flex; align-items: center; box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; line-height: 1.3; cursor: pointer; }
.fx-agree .fx-btn:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-agree .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-agree .fx-note { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-agree .fx-right { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-agree .fx-wrong { background: var(--fx-coral-pale); color: var(--fx-ink); }
.fx-agree .fx-agree-stage { position: relative; box-sizing: border-box; width: 100%; height: 310px; padding: 0; }
.fx-agree .fx-agree-drawing { position: relative; width: 100%; max-width: 520px; height: 100%; margin: 0 auto; }
.fx-agree .fx-agree-part { position: absolute; top: 10px; width: 44%; text-align: center; font-size: 16px; line-height: 1.3; }
.fx-agree .fx-agree-subject-label { left: 2%; }
.fx-agree .fx-agree-verb-label { right: 2%; }
.fx-agree .fx-agree-post { position: absolute; top: 103px; left: 50%; width: 12px; height: 175px; transform: translateX(-50%); background: var(--fx-ink); }
.fx-agree .fx-agree-base { position: absolute; top: 274px; left: 50%; width: 112px; height: 12px; border-radius: 6px; transform: translateX(-50%); background: var(--fx-ink); }
.fx-agree .fx-agree-pivot { position: absolute; top: 89px; left: 50%; width: 34px; height: 28px; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--fx-sun); }
.fx-agree .fx-agree-beam { position: absolute; top: 100px; left: 24%; width: 52%; height: 6px; border-radius: 3px; background: var(--fx-beam); transform: rotate(var(--fx-tilt)); transform-origin: 50% 50%; transition: transform 0.45s, background-color 0.3s; }
.fx-agree .fx-agree-hanger { position: absolute; top: 3px; width: 96px; height: 140px; transform: translateX(-50%) rotate(calc(-1 * var(--fx-tilt))); transform-origin: 50% 0; transition: transform 0.45s; }
.fx-agree .fx-agree-left { left: 0; }
.fx-agree .fx-agree-right { left: 100%; }
.fx-agree .fx-agree-cords { position: absolute; top: 0; left: 0; width: 96px; height: 140px; }
.fx-agree .fx-agree-wire { fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-agree .fx-agree-pan { fill: var(--fx-sky-pale); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-agree .fx-agree-dragon { position: absolute; bottom: 18px; width: 44px; height: 70px; text-align: center; transform: translateX(-50%); transition: left 0.45s; }
.fx-agree .fx-agree-dragon svg { display: block; width: 44px; height: 50px; }
.fx-agree .fx-agree-dragon small { display: block; font-size: 12px; line-height: 20px; font-weight: 700; }
.fx-agree .fx-agree-dragonshape { fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-agree .fx-agree-wing { fill: var(--fx-mint-pale); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-agree .fx-agree-eye { fill: var(--fx-paper); }
.fx-agree .fx-agree-pupil { fill: var(--fx-ink); }
.fx-agree .fx-agree-cal { left: 50%; }
.fx-agree .fx-agree-bo { left: 75%; visibility: hidden; }
.fx-agree:has(#fx-agree-many:checked) .fx-agree-cal { left: 25%; }
.fx-agree:has(#fx-agree-many:checked) .fx-agree-bo { visibility: visible; }
.fx-agree .fx-agree-weight { position: absolute; bottom: 18px; display: grid; align-content: center; justify-items: center; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 8px 8px 3px 3px; background: var(--fx-sun); color: var(--fx-ink); text-align: center; visibility: hidden; }
.fx-agree .fx-agree-weight::before { content: ""; position: absolute; top: -12px; left: 50%; width: 20px; height: 10px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-bottom: 0; border-radius: 6px 6px 0 0; transform: translateX(-50%); }
.fx-agree .fx-agree-weight b { font-size: 24px; line-height: 1.2; }
.fx-agree .fx-agree-weight small { font-size: 12px; line-height: 1.3; }
.fx-agree .fx-agree-is-weight { left: 16px; width: 64px; height: 64px; }
.fx-agree .fx-agree-are-weight { left: 5px; width: 86px; height: 78px; }
.fx-agree:has(#fx-agree-is:checked) .fx-agree-is-weight, .fx-agree:has(#fx-agree-are:checked) .fx-agree-are-weight { visibility: visible; }
.fx-agree .fx-agree-pin { position: absolute; top: 97px; left: 50%; box-sizing: border-box; width: 12px; height: 12px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sun); transform: translateX(-50%); }
.fx-agree .fx-agree-pivot-label { position: absolute; bottom: 2px; left: 0; width: 100%; text-align: center; font-size: 12px; }
.fx-agree .fx-agree-card { display: grid; gap: 8px; }
.fx-agree .fx-agree-messages { display: grid; min-width: 0; }
.fx-agree .fx-agree-state { grid-area: 1 / 1; visibility: hidden; }
.fx-agree .fx-agree-description { font-size: 14px; }
.fx-agree:has(#fx-agree-is:checked), .fx-agree:has(#fx-agree-are:checked) { --fx-beam: var(--fx-coral); }
.fx-agree:has(#fx-agree-one:checked):has(#fx-agree-are:checked) { --fx-tilt: 10deg; }
.fx-agree:has(#fx-agree-one:checked):has(#fx-agree-is:checked), .fx-agree:has(#fx-agree-many:checked):has(#fx-agree-are:checked) { --fx-tilt: 0deg; --fx-beam: var(--fx-mint); }
.fx-agree:has(#fx-agree-one:checked):has(#fx-agree-empty:checked) .fx-agree-s1, .fx-agree:has(#fx-agree-many:checked):has(#fx-agree-empty:checked) .fx-agree-s2, .fx-agree:has(#fx-agree-one:checked):has(#fx-agree-is:checked) .fx-agree-s3, .fx-agree:has(#fx-agree-one:checked):has(#fx-agree-are:checked) .fx-agree-s4, .fx-agree:has(#fx-agree-many:checked):has(#fx-agree-are:checked) .fx-agree-s5, .fx-agree:has(#fx-agree-many:checked):has(#fx-agree-is:checked) .fx-agree-s6 { visibility: visible; }
@container (max-width: 480px) { .fx-agree .fx-agree-controls { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-agree .fx-agree-beam, .fx-agree .fx-agree-hanger, .fx-agree .fx-agree-dragon { transition: none; } }