/* Light/dark switch: sliding knob with sun / moon (replaces the small round button). */
html body .kg-theme,html .kg-theme{text-indent:-9999px;white-space:nowrap;line-height:0!important;font-size:0!important;}
html .kg-theme,html #kgsTheme{position:relative;width:62px!important;min-width:62px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;box-sizing:border-box!important;align-self:center;border-radius:999px!important;font-size:0!important;color:transparent!important;overflow:hidden;
  background:linear-gradient(180deg,#171717,#0d0d0d)!important;border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:inset 2px 2px 6px rgba(0,0,0,.7),inset -1px -1px 3px rgba(255,255,255,.05)!important;transition:background .25s,border-color .25s}
html .kg-theme::before,html #kgsTheme::before{content:"";position:absolute;top:50%;margin-top:-13px;left:31px;width:26px;height:26px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff3b0,#FFD400 55%,#c99a00);box-shadow:0 2px 6px rgba(0,0,0,.55);transition:left .25s ease,background .25s}
html .kg-theme::after,html #kgsTheme::after{content:"";position:absolute;top:50%;margin-top:-8px;left:8px;width:16px;height:16px;opacity:.75;transition:opacity .25s;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9d4c7' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E")}
html .kg-theme:hover,html #kgsTheme:hover{border-color:rgba(255,212,0,.6)!important}
/* dark mode: knob on the right carrying a moon */
html:not([data-theme="light"]) .kg-theme::before,html:not([data-theme="light"]) #kgsTheme::before{background:radial-gradient(circle at 35% 30%,#f4f1e8,#cfcabb 60%,#8f8a7c)}
html:not([data-theme="light"]) .kg-theme::after,html:not([data-theme="light"]) #kgsTheme::after{left:34px;opacity:.9;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222'%3E%3Cpath d='M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5z'/%3E%3C/svg%3E")}
html:not([data-theme="light"]) .kg-theme::before,html:not([data-theme="light"]) #kgsTheme::before{left:32px}
/* light mode: knob on the left carrying a sun */
[data-theme="light"] .kg-theme,[data-theme="light"] #kgsTheme{background:linear-gradient(180deg,#e9e5da,#f6f3ea)!important;border-color:rgba(0,0,0,.15)!important;box-shadow:inset 2px 2px 6px rgba(0,0,0,.14),inset -1px -1px 3px #fff!important}
[data-theme="light"] .kg-theme::before,[data-theme="light"] #kgsTheme::before{left:4px}
[data-theme="light"] .kg-theme::after,[data-theme="light"] #kgsTheme::after{left:8px;opacity:1;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23553d00' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion:reduce){html .kg-theme::before,html .kg-theme::after{transition:none}}
html .kg-theme>svg,html .kg-theme>i,html .kg-theme>span,html #kgsTheme>svg,html #kgsTheme>i,html #kgsTheme>span{display:none!important}

/* Staff top bar: the bell looks like its neighbours (same border, colour, radius) in both themes */
.kgs-top .kgib{border:1px solid var(--kg-border,#262626)!important;color:inherit!important;border-radius:8px;height:34px;width:38px;background:none}
