/* Browser adaptation of SunnyDesignor/WpfGorgeousThemeSwitch (MIT).
   Original star/cloud geometry and day/night palette; see vendor/WpfGorgeousThemeSwitch-LICENSE.txt. */
.theme-control .theme-switch{display:flex;align-items:center;gap:9px;border:0;padding:0}
.theme-control .theme-auto{min-height:32px;padding:7px 9px;font-size:11px;border:1px solid var(--line);background:transparent;color:var(--muted);cursor:pointer}
.theme-control .theme-auto[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);background:var(--surface-soft)}
.theme-control .gorgeous-switch{width:100px;height:40px;min-height:0;padding:0;border:0;border-radius:22px;background:none;color:inherit;cursor:pointer;position:relative;flex-shrink:0;isolation:isolate;box-shadow:0 1px 1px #ffffff33,0 2px 5px #00000030;transition:box-shadow .2s}
.gorgeous-switch::before,.gorgeous-switch::after{display:none!important}
.gorgeous-switch svg{display:block;width:100%;height:100%;overflow:visible}
.gorgeous-switch:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.gorgeous-switch:hover{box-shadow:0 1px 1px #ffffff44,0 3px 9px #00000050}
.gorgeous-switch .sky{fill:#4685c0;transition:fill .65s ease}
.gorgeous-switch .cloud-layer{transition:transform .7s cubic-bezier(.65,0,.25,1);transform:translateY(0)}
.gorgeous-switch .cloud-far{transition-delay:30ms}
.gorgeous-switch .star-field{transform:translateY(-40px);transition:transform .85s cubic-bezier(.55,-.15,.2,1.2);fill:#fff}
.gorgeous-switch .orb{transform:translateX(0);transition:transform .9s cubic-bezier(.65,-.06,.2,1.14)}
.gorgeous-switch .moon-face{transform:translateX(35px);transition:transform .7s cubic-bezier(.65,0,.2,1);transition-delay:.05s}
.gorgeous-switch .halo{transition:transform .95s cubic-bezier(.65,-.06,.2,1.1)}
.gorgeous-switch .halo-1{fill:#ffffff11}.gorgeous-switch .halo-2,.gorgeous-switch .halo-3{fill:#ffffff22}
:root[data-theme="dark"] .gorgeous-switch .sky{fill:#171e33}
:root[data-theme="dark"] .gorgeous-switch .cloud-near{transform:translateY(34px)}
:root[data-theme="dark"] .gorgeous-switch .cloud-far{transform:translateY(27px)}
:root[data-theme="dark"] .gorgeous-switch .star-field{transform:translateY(0)}
:root[data-theme="dark"] .gorgeous-switch .orb{transform:translateX(59px)}
:root[data-theme="dark"] .gorgeous-switch .moon-face{transform:translateX(0)}
:root[data-theme="dark"] .gorgeous-switch .halo-1{transform:translateX(21px)}
:root[data-theme="dark"] .gorgeous-switch .halo-2{transform:translateX(33px)}
:root[data-theme="dark"] .gorgeous-switch .halo-3{transform:translateX(45px)}
.gorgeous-switch .star-twinkle{transform-box:fill-box;transform-origin:center}
:root[data-theme="dark"] .gorgeous-switch .star-twinkle{animation:night-sparkle 2.7s ease both}
:root[data-theme="dark"] .gorgeous-switch .star-twinkle:nth-child(2n){animation-delay:.2s}
@keyframes night-sparkle{0%,35%,100%{opacity:1;scale:1}60%{opacity:.35;scale:.35}}
@media(max-width:740px){.theme-control .theme-switch{gap:6px}.theme-control .gorgeous-switch{width:78px;height:32px;min-width:0}.theme-control .theme-auto{font-size:10px;min-width:0;min-height:28px;padding:6px}.theme-control .theme-auto::before{display:none}}
@media(max-width:380px){.theme-control .gorgeous-switch{width:70px;height:28px}.theme-control .theme-switch{gap:4px}.theme-control .theme-auto{padding:5px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.gorgeous-switch *,.gorgeous-switch{transition:none!important;animation:none!important}}
