.fx-daynight { display: grid; gap: 12px; --fx-angle: 240deg; --fx-window: var(--fx-sky-pale); --fx-orb: var(--fx-sun); --fx-rise: 0px; --fx-stars: 0; }
.fx-daynight .fx-note ol { margin: 0; padding-left: 0; list-style: none; }
.fx-daynight .fx-note li + li { margin-top: 6px; }
.fx-daynight .fx-daynight-goal, .fx-daynight .fx-daynight-read { margin: 0; }
.fx-daynight .fx-daynight-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-daynight .fx-daynight-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-daynight .fx-daynight-group legend { padding: 0; font-weight: 800; margin-bottom: 8px; }
.fx-daynight .fx-daynight-caption { margin: 6px 0 10px; font-size: 14px; }
.fx-daynight .fx-daynight-dial { width: 204px; height: 204px; max-width: 100%; box-sizing: border-box; position: relative; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); margin: 12px auto; }
.fx-daynight .fx-daynight-hour { position: absolute; left: var(--fx-x); top: var(--fx-y); transform: translate(-50%, -50%); width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; box-sizing: border-box; display: grid; place-items: center; z-index: 2; color: var(--fx-ink); background: var(--fx-paper); }
.fx-daynight .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-daynight .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-daynight .fx-daynight-twelve { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 12px; }
.fx-daynight .fx-daynight-hands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: var(--fx-ink); }
.fx-daynight .fx-daynight-hand { transform-origin: 102px 102px; transform: rotate(var(--fx-angle)); transition: transform 0.4s; }
.fx-daynight .fx-daynight-hand path { stroke: var(--fx-ink); stroke-width: 7; stroke-linecap: round; }
.fx-daynight .fx-daynight-switch { min-height: 48px; padding: 12px; white-space: normal; }
.fx-daynight .fx-daynight-scene { height: 286px; padding: 12px; box-sizing: border-box; display: grid; justify-items: center; align-content: space-between; gap: 6px; color: var(--fx-ink); }
.fx-daynight .fx-daynight-window { width: min(180px, 100%); height: 64px; border: 4px solid var(--fx-ink); box-sizing: border-box; background: var(--fx-window); overflow: hidden; }
.fx-daynight .fx-daynight-window svg { width: 100%; height: 100%; display: block; }
.fx-daynight .fx-daynight-orb { fill: var(--fx-orb); transform: translateY(var(--fx-rise)); }
.fx-daynight .fx-daynight-stars { fill: var(--fx-paper); opacity: var(--fx-stars); }
.fx-daynight .fx-daynight-frame { fill: none; stroke: var(--fx-ink); stroke-width: 4; }
.fx-daynight .fx-daynight-stack { display: grid; min-width: 0; width: 100%; }
.fx-daynight .fx-daynight-state { grid-area: 1 / 1; visibility: hidden; margin: 0; min-width: 0; }
.fx-daynight .fx-daynight-displays { text-align: center; }
.fx-daynight .fx-daynight-displays p { margin: 0; font-size: 14px; }
.fx-daynight .fx-daynight-displays .fx-daynight-digital { display: grid; align-content: center; gap: 2px; min-height: 70px; margin: 6px auto 0; border: 4px solid var(--fx-ink); border-radius: 8px; background: var(--fx-mint-pale); color: var(--fx-ink); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.fx-daynight .fx-daynight-icon { font-size: 14px; font-weight: 600; }
.fx-daynight .fx-daynight-success { box-shadow: 0 0 0 3px var(--fx-mint); }
.fx-daynight:has(#fx-daynight-h1:checked) { --fx-angle: 30deg; --fx-window: var(--fx-ink); --fx-orb: var(--fx-paper); }
.fx-daynight:has(#fx-daynight-h2:checked) { --fx-angle: 60deg; --fx-window: var(--fx-ink); --fx-orb: var(--fx-paper); }
.fx-daynight:has(#fx-daynight-h3:checked) { --fx-angle: 90deg; --fx-window: var(--fx-ink); --fx-orb: var(--fx-paper); }
.fx-daynight:has(#fx-daynight-h4:checked) { --fx-angle: 120deg; --fx-window: var(--fx-ink); --fx-orb: var(--fx-paper); }
.fx-daynight:has(#fx-daynight-h6:checked) { --fx-angle: 180deg; --fx-window: var(--fx-sun-pale); }
.fx-daynight:has(#fx-daynight-h7:checked) { --fx-angle: 210deg; }
.fx-daynight:has(#fx-daynight-h8:checked) { --fx-angle: 240deg; }
.fx-daynight:has(#fx-daynight-h10:checked) { --fx-angle: 300deg; --fx-window: var(--fx-sky); --fx-rise: -20px; }
.fx-daynight:has(#fx-daynight-evening:checked) { --fx-window: var(--fx-sun-pale); --fx-orb: var(--fx-sun); --fx-rise: -20px; }
.fx-daynight:has(#fx-daynight-evening:checked):has(#fx-daynight-h6:checked) { --fx-window: var(--fx-coral-pale); --fx-rise: 5px; }
.fx-daynight:has(#fx-daynight-evening:checked):has(#fx-daynight-h7:checked) { --fx-window: var(--fx-grape); --fx-rise: 12px; }
.fx-daynight:has(#fx-daynight-evening:checked):has(#fx-daynight-h8:checked), .fx-daynight:has(#fx-daynight-evening:checked):has(#fx-daynight-h10:checked) { --fx-window: var(--fx-ink); --fx-orb: var(--fx-paper); }
.fx-daynight:has(#fx-daynight-evening:checked):has(#fx-daynight-h10:checked) { --fx-stars: 1; }
.fx-daynight:has(#fx-daynight-h1:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a1, .fx-daynight:has(#fx-daynight-h1:checked):has(#fx-daynight-evening:checked) .fx-daynight-p1, .fx-daynight:has(#fx-daynight-h2:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a2, .fx-daynight:has(#fx-daynight-h2:checked):has(#fx-daynight-evening:checked) .fx-daynight-p2, .fx-daynight:has(#fx-daynight-h3:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a3, .fx-daynight:has(#fx-daynight-h3:checked):has(#fx-daynight-evening:checked) .fx-daynight-p3, .fx-daynight:has(#fx-daynight-h4:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a4, .fx-daynight:has(#fx-daynight-h4:checked):has(#fx-daynight-evening:checked) .fx-daynight-p4, .fx-daynight:has(#fx-daynight-h6:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a6, .fx-daynight:has(#fx-daynight-h6:checked):has(#fx-daynight-evening:checked) .fx-daynight-p6, .fx-daynight:has(#fx-daynight-h7:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a7, .fx-daynight:has(#fx-daynight-h7:checked):has(#fx-daynight-evening:checked) .fx-daynight-p7, .fx-daynight:has(#fx-daynight-h8:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a8, .fx-daynight:has(#fx-daynight-h8:checked):has(#fx-daynight-evening:checked) .fx-daynight-p8, .fx-daynight:has(#fx-daynight-h10:checked):not(:has(#fx-daynight-evening:checked)) .fx-daynight-a10, .fx-daynight:has(#fx-daynight-h10:checked):has(#fx-daynight-evening:checked) .fx-daynight-p10 { visibility: visible; }
@container (max-width: 480px) { .fx-daynight .fx-daynight-controls { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-daynight .fx-daynight-hand { transition: none; } }