/* Copied from apps/dashboard/app/theme-switch.css so the site and the dashboard share one theme button. */
/* The theme icon turns from sun to moon to "system" by moving the same shapes (see ThemeIcon). */
.theme-icon{width:22px;height:22px;overflow:visible;transition:transform .6s cubic-bezier(.4,0,.2,1)}
.theme-icon .ti-disc,.theme-icon .ti-shadow,.theme-icon .ti-half,.theme-icon .ti-ring,.theme-icon .ti-rays{transition:r .6s cubic-bezier(.4,0,.2,1),opacity .4s ease,transform .6s cubic-bezier(.4,0,.2,1)}
.theme-icon .ti-rays{transform-origin:12px 12px}
/* Light: a small sun with its rays out. */
.theme-icon[data-theme-icon=light] .ti-disc{r:4.6px}
.theme-icon[data-theme-icon=light] .ti-shadow{transform:translate(14px,-8px)}
.theme-icon[data-theme-icon=light] .ti-half{transform:translateX(13px)}
.theme-icon[data-theme-icon=light] .ti-ring{opacity:0}
.theme-icon[data-theme-icon=light] .ti-rays{opacity:1;transform:rotate(0) scale(1)}
/* Dark: the rays fold in, the disc grows and a shadow slides over it into a crescent. */
.theme-icon[data-theme-icon=dark]{transform:rotate(-20deg)}
.theme-icon[data-theme-icon=dark] .ti-disc{r:8px}
.theme-icon[data-theme-icon=dark] .ti-shadow{transform:none}
.theme-icon[data-theme-icon=dark] .ti-half{transform:translateX(13px)}
.theme-icon[data-theme-icon=dark] .ti-ring{opacity:0}
.theme-icon[data-theme-icon=dark] .ti-rays{opacity:0;transform:rotate(90deg) scale(.4)}
/* System: the shadow leaves, a cover slides over one half and a ring outlines the whole disc. */
.theme-icon[data-theme-icon=system] .ti-disc{r:7.25px}
.theme-icon[data-theme-icon=system] .ti-shadow{transform:translate(14px,-8px)}
.theme-icon[data-theme-icon=system] .ti-half{transform:none}
.theme-icon[data-theme-icon=system] .ti-ring{opacity:1}
.theme-icon[data-theme-icon=system] .ti-rays{opacity:0;transform:rotate(-90deg) scale(.4)}
[dir=rtl] .theme-icon[data-theme-icon=system] .ti-half{transform:translateX(-12px)}
@media (prefers-reduced-motion:reduce){.theme-icon,.theme-icon *{transition:none!important}}
/* Landing pages: the same button as the dashboard's, as a small round button in the top bar. */
.theme-btn{display:inline-grid;place-items:center;width:28px;height:28px;padding:0!important;border-radius:50%}
.theme-btn .theme-icon{width:17px;height:17px}
