.fx-leaflet { --fx-leaflet-angle: 0deg; --fx-leaflet-open: hidden; --fx-leaflet-closed: visible; display: grid; }
.fx-leaflet .fx-leaflet-body { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-leaflet .fx-leaflet-steps { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fx-leaflet .fx-leaflet-goal { margin: 0; }
.fx-leaflet .fx-leaflet-question { padding: 16px; border: 2px solid var(--fx-ink); border-radius: 12px; background: var(--fx-paper); }
.fx-leaflet .fx-leaflet-question p { margin: 10px 0 0; line-height: 2; }
.fx-leaflet .fx-leaflet-key { display: inline-grid; vertical-align: middle; justify-items: center; padding: 2px 8px; border: 2px solid var(--fx-ink); border-radius: 6px; background: var(--fx-sun-pale); line-height: 1.4; }
.fx-leaflet .fx-leaflet-key small { font-size: 12px; }
.fx-leaflet .fx-leaflet-controls { min-width: 0; border: 0; padding: 0; margin: 0; }
.fx-leaflet .fx-leaflet-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-leaflet .fx-leaflet-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-leaflet .fx-btn { box-sizing: border-box; min-width: 0; min-height: 48px; padding: 10px 12px; color: var(--fx-ink); background: var(--fx-mint-pale); border: 2px solid var(--fx-ink); border-radius: 4px; white-space: normal; font-size: 16px; }
.fx-leaflet .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint); }
.fx-leaflet .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-leaflet .fx-leaflet-sheet { box-sizing: border-box; display: grid; grid-template-rows: 32px minmax(0, 1fr); gap: 12px; position: relative; height: 700px; min-width: 0; margin: 0; padding: 16px; background: var(--fx-mint-pale); border: 2px solid var(--fx-ink); border-radius: 8px; }
.fx-leaflet .fx-leaflet-sheet figcaption { font-size: 18px; font-weight: 800; }
.fx-leaflet .fx-leaflet-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; min-height: 0; }
.fx-leaflet .fx-leaflet-card { display: grid; grid-template-rows: 90px minmax(0, 1fr); min-width: 0; min-height: 0; }
.fx-leaflet .fx-leaflet-part { align-self: start; font-size: 14px; line-height: 1.35; }
.fx-leaflet .fx-leaflet-hinge { position: relative; min-width: 0; min-height: 0; perspective: 850px; }
.fx-leaflet .fx-leaflet-under { position: absolute; inset: 0; display: grid; padding: 10px; background: var(--fx-muted); border: 1px solid var(--fx-ink); border-radius: 3px; }
.fx-leaflet .fx-leaflet-copy { grid-area: 1 / 1; align-self: stretch; visibility: var(--fx-leaflet-open); padding: 10px; margin: 0; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; line-height: 1.4; }
.fx-leaflet .fx-leaflet-copy ul { margin: 0; padding-left: 18px; }
.fx-leaflet .fx-leaflet-copy li + li { margin-top: 6px; }
.fx-leaflet .fx-leaflet-activities .fx-leaflet-under { background: var(--fx-mint); }
.fx-leaflet .fx-leaflet-activities .fx-leaflet-copy { background: var(--fx-mint-pale); }
.fx-leaflet .fx-leaflet-flap { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: var(--fx-mint-pale); border: 2px solid var(--fx-ink); border-radius: 3px; box-shadow: 2px 3px 0 var(--fx-muted); transform-origin: center top; transform-style: preserve-3d; transform: rotateX(var(--fx-leaflet-angle)) translateZ(1px); transition: transform 0.65s; }
.fx-leaflet .fx-leaflet-face { display: block; text-align: center; backface-visibility: hidden; transform: translateZ(2px); }
.fx-leaflet .fx-leaflet-flap::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; background: var(--fx-sun-pale); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.fx-leaflet:has(#fx-leaflet-when:checked) .fx-leaflet-when, .fx-leaflet:has(#fx-leaflet-stay:checked) .fx-leaflet-stay, .fx-leaflet:has(#fx-leaflet-activities:checked) .fx-leaflet-activities, .fx-leaflet:has(#fx-leaflet-outside:checked) .fx-leaflet-outside { --fx-leaflet-angle: -108deg; --fx-leaflet-open: visible; --fx-leaflet-closed: hidden; }
.fx-leaflet:has(#fx-leaflet-activities:checked) .fx-leaflet-key, .fx-leaflet:has(#fx-leaflet-activities:checked) .fx-leaflet-activities .fx-leaflet-flap { background: var(--fx-mint); }
.fx-leaflet .fx-leaflet-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.fx-leaflet .fx-leaflet-pair { display: grid; min-width: 0; }
.fx-leaflet .fx-leaflet-pair p { grid-area: 1 / 1; margin: 0; font-size: 14px; }
.fx-leaflet .fx-leaflet-open { visibility: var(--fx-leaflet-open); }
.fx-leaflet .fx-leaflet-closed { visibility: var(--fx-leaflet-closed); }
.fx-leaflet .fx-leaflet-feedback { display: grid; min-width: 0; }
.fx-leaflet .fx-leaflet-feedback p { grid-area: 1 / 1; align-self: stretch; margin: 0; visibility: hidden; }
.fx-leaflet:not(:has(.fx-leaflet-toggle:checked)) .fx-leaflet-msg-none { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-when:checked):not(:has(#fx-leaflet-stay:checked, #fx-leaflet-activities:checked, #fx-leaflet-outside:checked)) .fx-leaflet-msg-when { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-stay:checked):not(:has(#fx-leaflet-when:checked, #fx-leaflet-activities:checked, #fx-leaflet-outside:checked)) .fx-leaflet-msg-stay { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-outside:checked):not(:has(#fx-leaflet-when:checked, #fx-leaflet-stay:checked, #fx-leaflet-activities:checked)) .fx-leaflet-msg-outside { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-when:checked):has(#fx-leaflet-stay:checked):not(:has(#fx-leaflet-activities:checked)) .fx-leaflet-msg-several, .fx-leaflet:has(#fx-leaflet-when:checked):has(#fx-leaflet-outside:checked):not(:has(#fx-leaflet-activities:checked)) .fx-leaflet-msg-several, .fx-leaflet:has(#fx-leaflet-stay:checked):has(#fx-leaflet-outside:checked):not(:has(#fx-leaflet-activities:checked)) .fx-leaflet-msg-several { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-activities:checked):not(:has(#fx-leaflet-when:checked, #fx-leaflet-stay:checked, #fx-leaflet-outside:checked)) .fx-leaflet-msg-right { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-activities:checked):has(#fx-leaflet-when:checked, #fx-leaflet-stay:checked, #fx-leaflet-outside:checked) .fx-leaflet-msg-all { visibility: visible; }
.fx-leaflet:not(:has(.fx-leaflet-toggle:checked)) .fx-leaflet-key { animation: fx-leaflet-pulse 0.9s ease-in-out 2; }
@keyframes fx-leaflet-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@container (max-width: 480px) { .fx-leaflet .fx-leaflet-choices, .fx-leaflet .fx-leaflet-readout { grid-template-columns: minmax(0, 1fr); } .fx-leaflet .fx-leaflet-sheet { height: 1200px; padding: 12px; } .fx-leaflet .fx-leaflet-panels { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .fx-leaflet .fx-leaflet-flap { transition: none; } .fx-leaflet:not(:has(.fx-leaflet-toggle:checked)) .fx-leaflet-key { animation: none; } }