.fx-unfold { display: grid; gap: 16px; --fx-closed: visible; --fx-mixed: hidden; --fx-all: hidden; --fx-v1: hidden; --fx-v2: hidden; --fx-v3: hidden; --fx-v4: hidden; --fx-a1: 0deg; --fx-a2: 0deg; --fx-a3: 0deg; --fx-a4: 0deg; }
.fx-unfold:has(input:checked) { --fx-closed: hidden; --fx-mixed: visible; }
.fx-unfold:has(#fx-unfold-one:checked) { --fx-v1: visible; --fx-a1: -175deg; }
.fx-unfold:has(#fx-unfold-two:checked) { --fx-v2: visible; --fx-a2: -175deg; }
.fx-unfold:has(#fx-unfold-three:checked) { --fx-v3: visible; --fx-a3: -175deg; }
.fx-unfold:has(#fx-unfold-four:checked) { --fx-v4: visible; --fx-a4: -175deg; }
.fx-unfold:has(#fx-unfold-one:checked):not(:has(#fx-unfold-two:checked, #fx-unfold-three:checked, #fx-unfold-four:checked)) { --fx-mixed: hidden; }
.fx-unfold:has(#fx-unfold-two:checked):not(:has(#fx-unfold-one:checked, #fx-unfold-three:checked, #fx-unfold-four:checked)) { --fx-mixed: hidden; }
.fx-unfold:has(#fx-unfold-three:checked):not(:has(#fx-unfold-one:checked, #fx-unfold-two:checked, #fx-unfold-four:checked)) { --fx-mixed: hidden; }
.fx-unfold:has(#fx-unfold-four:checked):not(:has(#fx-unfold-one:checked, #fx-unfold-two:checked, #fx-unfold-three:checked)) { --fx-mixed: hidden; }
.fx-unfold:has(#fx-unfold-one:checked):has(#fx-unfold-two:checked):has(#fx-unfold-three:checked):has(#fx-unfold-four:checked) { --fx-mixed: hidden; --fx-all: visible; }
.fx-unfold .fx-instructions { margin: 0; padding-left: 24px; }
.fx-unfold .fx-instructions li + li { margin-top: 6px; }
.fx-unfold .fx-goal { margin: 0; color: var(--fx-ink); }
.fx-unfold .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-unfold .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-unfold .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-unfold .fx-btn { display: flex; align-items: center; justify-content: center; flex: 1 1 88px; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px 12px; font-size: 16px; white-space: normal; text-align: center; background: var(--fx-paper); color: var(--fx-ink); }
.fx-unfold .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-unfold .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-unfold .fx-table { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); align-items: start; align-content: start; gap: 16px; height: 940px; box-sizing: border-box; padding: 10px; color: var(--fx-ink); }
.fx-unfold .fx-notes, .fx-unfold .fx-report { min-width: 0; box-sizing: border-box; padding: 10px; font-size: 16px; line-height: 22px; border: 1px solid var(--fx-muted); }
.fx-unfold .fx-notes { background: var(--fx-sun-pale); }
.fx-unfold .fx-note-list { display: grid; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.fx-unfold .fx-note-list li { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 6px; align-items: start; padding: 8px; border: 2px solid var(--fx-muted); background: var(--fx-paper); }
.fx-unfold .fx-tick { width: 20px; height: 20px; visibility: var(--fx-all); fill: none; stroke: var(--fx-mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fx-unfold:has(#fx-unfold-one:checked) .fx-n1, .fx-unfold:has(#fx-unfold-two:checked) .fx-n2, .fx-unfold:has(#fx-unfold-three:checked) .fx-n3, .fx-unfold:has(#fx-unfold-four:checked) .fx-n4 { background: var(--fx-mint-pale); border-color: var(--fx-mint); }
.fx-unfold .fx-report { background: var(--fx-paper); }
.fx-unfold .fx-report-head { display: grid; gap: 6px; margin-bottom: 8px; }
.fx-unfold .fx-start { visibility: var(--fx-closed); font-size: 14px; line-height: 20px; }
.fx-unfold .fx-panels { display: grid; gap: 10px; }
.fx-unfold .fx-panel-one { --fx-angle: var(--fx-a1); --fx-show: var(--fx-v1); }
.fx-unfold .fx-panel-two { --fx-angle: var(--fx-a2); --fx-show: var(--fx-v2); }
.fx-unfold .fx-panel-three { --fx-angle: var(--fx-a3); --fx-show: var(--fx-v3); }
.fx-unfold .fx-panel-four { --fx-angle: var(--fx-a4); --fx-show: var(--fx-v4); }
.fx-unfold .fx-part { margin: 0; height: 22px; font-size: 14px; line-height: 22px; font-weight: 700; }
.fx-unfold .fx-hinge { position: relative; display: grid; height: 142px; perspective: 800px; }
.fx-unfold .fx-panel-two .fx-hinge { height: 152px; }
.fx-unfold .fx-panel-three .fx-hinge { height: 220px; }
.fx-unfold .fx-panel-four .fx-hinge { height: 106px; }
.fx-unfold .fx-copy, .fx-unfold .fx-lid { grid-area: 1 / 1; box-sizing: border-box; padding: 10px; border: 1px solid var(--fx-muted); }
.fx-unfold .fx-copy { visibility: var(--fx-show); background: var(--fx-paper); }
.fx-unfold .fx-copy p { margin: 0; }
.fx-unfold .fx-copy b + p { margin-top: 8px; }
.fx-unfold .fx-lid { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; background: var(--fx-sky-pale); border-top: 3px solid var(--fx-ink); transform-origin: 50% 0%; transform-style: preserve-3d; backface-visibility: hidden; transform: rotateX(var(--fx-angle)) translateZ(2px); transition: transform 0.75s; }
.fx-unfold .fx-lid span { font-size: 14px; line-height: 20px; }
.fx-unfold .fx-messages, .fx-unfold .fx-message-row { display: grid; gap: 16px; }
.fx-unfold .fx-messages p { margin: 0; font-size: 16px; line-height: 24px; color: var(--fx-ink); }
.fx-unfold .fx-summary { display: grid; }
.fx-unfold .fx-summary > * { grid-area: 1 / 1; }
.fx-unfold .fx-closed { visibility: var(--fx-closed); }
.fx-unfold .fx-single-one { visibility: var(--fx-v1); }
.fx-unfold .fx-single-two { visibility: var(--fx-v2); }
.fx-unfold .fx-single-three { visibility: var(--fx-v3); }
.fx-unfold .fx-single-four { visibility: var(--fx-v4); }
.fx-unfold .fx-all { visibility: var(--fx-all); }
.fx-unfold .fx-mixed { visibility: var(--fx-mixed); }
@container (max-width: 480px) { .fx-unfold .fx-table { grid-template-columns: minmax(0, 1fr); height: 1390px; } .fx-unfold .fx-notes, .fx-unfold .fx-report { font-size: 14px; line-height: 20px; } }
@media (prefers-reduced-motion: reduce) { .fx-unfold .fx-lid { transition: none; } }