.fx-timedial { --fx-k: 0; --fx-r: 32.33px; }
.fx-timedial:has(#fx-timedial-past:checked) { --fx-k: -1; }
.fx-timedial:has(#fx-timedial-future:checked) { --fx-k: 1; }
.fx-timedial .fx-content { display: grid; gap: 16px; min-width: 0; font-size: 16px; color: var(--fx-ink); }
.fx-timedial .fx-steps { list-style: none; margin: 0; padding: 0; line-height: 1.5; }
.fx-timedial .fx-steps li { margin: 4px 0; }
.fx-timedial .fx-goal { margin: 0; line-height: 1.5; }
.fx-timedial .fx-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.fx-timedial .fx-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-timedial .fx-group legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-timedial .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-timedial .fx-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; }
.fx-timedial .fx-btn:has(input:checked) { background: var(--fx-sun-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-timedial .fx-btn:focus-within { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-timedial .fx-scene { position: relative; display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 16px; align-items: center; box-sizing: border-box; height: 280px; padding: 16px; overflow: hidden; }
.fx-timedial .fx-people { display: grid; gap: 10px; min-width: 0; }
.fx-timedial .fx-cards { display: grid; gap: 8px; }
.fx-timedial .fx-person { display: flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; min-height: 52px; padding: 6px 10px; border: 2px solid var(--fx-muted); border-radius: 10px; background: var(--fx-paper); }
.fx-timedial .fx-person svg { width: 28px; height: 36px; flex-shrink: 0; }
.fx-timedial .fx-person circle { fill: var(--fx-sky-pale); stroke: var(--fx-ink); stroke-width: 2; }
.fx-timedial .fx-person path { fill: none; stroke: var(--fx-ink); stroke-width: 3; stroke-linecap: round; }
.fx-timedial:has(#fx-timedial-i:checked) .fx-person-i, .fx-timedial:has(#fx-timedial-she:checked) .fx-person-she, .fx-timedial:has(#fx-timedial-they:checked) .fx-person-they { background: var(--fx-sun); border-color: var(--fx-ink); box-shadow: 0 0 0 2px var(--fx-ink); }
.fx-timedial .fx-dial-area { display: grid; justify-items: center; min-width: 0; text-align: center; }
.fx-timedial .fx-dial-area small { font-size: 14px; line-height: 1.4; }
.fx-timedial .fx-view { position: relative; width: min(84%, 260px); height: 180px; perspective: 600px; }
.fx-timedial .fx-drum { position: absolute; top: 34px; left: 0; width: 100%; height: 112px; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -120deg)); transition: transform 0.64s steps(4, end); }
.fx-timedial .fx-face { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 4px; box-sizing: border-box; border: 3px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); backface-visibility: hidden; }
.fx-timedial .fx-face > span, .fx-timedial .fx-face > b { position: relative; }
.fx-timedial .fx-face > b { font-size: 18px; }
.fx-timedial .fx-symbol { font-size: 32px; line-height: 1; }
.fx-timedial .fx-yesterday { transform: rotateX(-120deg) translateZ(var(--fx-r)); }
.fx-timedial .fx-yesterday::before { content: ""; position: absolute; inset: 0; background: var(--fx-muted); opacity: 0.18; }
.fx-timedial .fx-everyday { background: var(--fx-mint); transform: rotateX(0deg) translateZ(var(--fx-r)); }
.fx-timedial .fx-tomorrow { background: var(--fx-sky); transform: rotateX(120deg) translateZ(var(--fx-r)); }
.fx-timedial .fx-pointer { position: absolute; top: 8px; left: 50%; width: 30px; height: 22px; transform: translateX(-50%); z-index: 2; }
.fx-timedial .fx-pointer polygon { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-timedial .fx-strip-label { display: grid; gap: 4px; }
.fx-timedial .fx-strip-label > span { font-size: 14px; }
.fx-timedial .fx-swap { display: grid; min-width: 0; }
.fx-timedial .fx-state { grid-area: 1 / 1; visibility: hidden; box-sizing: border-box; min-width: 0; margin: 0; padding: 12px; font-size: 16px; line-height: 1.6; color: var(--fx-ink); }
.fx-timedial .fx-verb { display: inline-block; padding: 2px 6px; margin: 2px 0; border: 2px solid var(--fx-ink); border-radius: 6px; font-weight: 800; }
.fx-timedial .fx-present .fx-verb { background: var(--fx-mint-pale); }
.fx-timedial .fx-past .fx-verb { background: var(--fx-coral-pale); }
.fx-timedial .fx-future .fx-verb { background: var(--fx-sky-pale); }
.fx-timedial .fx-mark { padding: 0 2px; border-radius: 3px; background: var(--fx-sun); font-style: normal; }
.fx-timedial .fx-explain { display: block; margin-top: 8px; }
.fx-timedial:has(#fx-timedial-i:checked):has(#fx-timedial-now:checked) .fx-i-now, .fx-timedial:has(#fx-timedial-she:checked):has(#fx-timedial-now:checked) .fx-she-now, .fx-timedial:has(#fx-timedial-they:checked):has(#fx-timedial-now:checked) .fx-they-now, .fx-timedial:has(#fx-timedial-i:checked):has(#fx-timedial-past:checked) .fx-i-past, .fx-timedial:has(#fx-timedial-she:checked):has(#fx-timedial-past:checked) .fx-she-past, .fx-timedial:has(#fx-timedial-they:checked):has(#fx-timedial-past:checked) .fx-they-past, .fx-timedial:has(#fx-timedial-i:checked):has(#fx-timedial-future:checked) .fx-i-future, .fx-timedial:has(#fx-timedial-she:checked):has(#fx-timedial-future:checked) .fx-she-future, .fx-timedial:has(#fx-timedial-they:checked):has(#fx-timedial-future:checked) .fx-they-future { visibility: visible; }
@container (max-width: 480px) { .fx-timedial .fx-controls, .fx-timedial .fx-scene { grid-template-columns: minmax(0, 1fr); } .fx-timedial .fx-scene { height: 420px; gap: 12px; align-content: center; padding: 12px; } .fx-timedial .fx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-timedial .fx-person { flex-direction: column; gap: 2px; min-height: 82px; padding: 6px; } .fx-timedial .fx-people { gap: 8px; } .fx-timedial .fx-dial-area { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .fx-timedial .fx-drum { transition: none; } }