/* A recessed track, a sliding glass key, and a constellation of sun/moon dots. */
.theme-switch{--travel:36px;--key-size:38px;--key-radius:12px;--glow:#aea0ff;position:relative!important;isolation:isolate;display:block!important;width:84px!important;min-width:84px!important;height:48px!important;min-height:48px!important;padding:4px!important;border:1px solid #ffffff12!important;border-radius:17px!important;background:linear-gradient(160deg,#101115,#292b33)!important;box-shadow:inset 0 2px 5px #000b,0 1px 0 #ffffff14!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.theme-switch .theme-key{position:absolute;display:grid;place-items:center;left:4px;top:4px;width:var(--key-size);height:var(--key-size);border-radius:var(--key-radius);background:linear-gradient(145deg,#ffffff3d,#ffffff10);border:1px solid #ffffff42;box-shadow:inset 0 1px 1px #ffffff60,0 3px 7px #0008;transform:translateX(0);transition:transform .5s cubic-bezier(.22,1,.36,1),background .35s,border-color .35s;pointer-events:none}
.theme-switch canvas{display:block;width:calc(var(--key-size) - 8px);height:calc(var(--key-size) - 8px);position:relative;z-index:2;pointer-events:none}
.theme-switch .theme-key:before{content:"";position:absolute;inset:-1px;border-radius:var(--key-radius);border:1px solid color-mix(in srgb,var(--glow) 75%,transparent);box-shadow:0 0 5px color-mix(in srgb,var(--glow) 50%,transparent),inset 0 0 5px color-mix(in srgb,var(--glow) 15%,transparent);pointer-events:none}
.theme-switch[aria-checked="true"]{--glow:#ffc862;background:linear-gradient(145deg,#d6d6d3,#f6f5f2)!important;border-color:#0000000b!important;box-shadow:inset 0 2px 5px #0003,0 1px 0 #fff9!important}
.theme-switch[aria-checked="true"] .theme-key{transform:translateX(var(--travel));background:linear-gradient(145deg,#fff,#e9e8e4);border-color:#fffc;box-shadow:inset 0 1px 2px #fff,0 3px 9px #0003}

.theme-switch:active .theme-key{scale:.95}.theme-switch:focus-visible{outline:2px solid var(--ink)!important;outline-offset:5px}.home-tools{gap:12px;align-items:center}.home-tools #motion-toggle{width:44px;height:44px}.theme-switch[hidden]{display:none!important}
@media(max-width:650px){.public-page .public-top{padding-left:18px;padding-right:18px}.public-page .public-actions{gap:8px}.public-page .public-top .wordmark{width:36px;height:36px}.theme-switch{--travel:32px;--key-size:34px;--key-radius:11px;width:76px!important;min-width:76px!important;height:44px!important;min-height:44px!important}}
@media(prefers-reduced-motion:reduce){.theme-switch,.theme-switch *,.theme-switch:after,.theme-switch .theme-key:before{transition:none!important}}
@media(prefers-contrast:more){.theme-switch{border-color:var(--ink)!important}.theme-switch .theme-key{border-color:#fff}.theme-switch[aria-checked="true"] .theme-key{border-color:#555}}

@media(max-width:380px){.public-page .public-top{padding-left:12px;padding-right:12px}.public-page .public-top .wordmark{width:32px;height:32px;flex:none}.public-page .public-actions{gap:6px}.public-page .public-actions .share-button{width:38px;min-width:38px;height:42px;padding:8px}.public-page .public-actions .creator-login{width:auto;min-width:58px;padding:10px;white-space:nowrap}}
