/* CalderThorn compact application theme control.
   The public guest homepage keeps its purpose-built control.

   Dark/Light surfaces are explicit here instead of depending on page-specific
   --panel/--text variables. */
body:not(.ct-home-guest) .kb-theme-toggle{
  left:auto!important;
  right:max(14px,env(safe-area-inset-right))!important;
  bottom:max(14px,env(safe-area-inset-bottom))!important;
  transform:none!important;
  gap:7px!important;
  padding:7px 9px!important;
  border-radius:8px!important;
  font-size:12px!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}
html[data-theme="dark"] body:not(.ct-home-guest) .kb-theme-toggle{
  background:#11151a!important;
  color:#e8eef6!important;
  border-color:#2b3642!important;
  box-shadow:0 4px 16px rgba(0,0,0,.36)!important;
}
html[data-theme="light"] body:not(.ct-home-guest) .kb-theme-toggle{
  background:#fff!important;
  color:#172033!important;
  border-color:#d7deea!important;
  box-shadow:0 4px 16px rgba(15,23,42,.12)!important;
}
body:not(.ct-home-guest) .kb-theme-toggle:hover{transform:none!important}
body:not(.ct-home-guest) .kb-theme-toggle__thumb{
  width:24px!important;height:24px!important;border-radius:6px!important;box-shadow:none!important;
}
body:not(.ct-home-guest) .kb-theme-toggle__icon{width:15px!important;height:15px!important}
body:not(.ct-home-guest) .kb-theme-toggle__label{opacity:.84!important}
html[data-theme="dark"] body:not(.ct-home-guest) .kb-theme-toggle__label{color:#e8eef6!important}
html[data-theme="light"] body:not(.ct-home-guest) .kb-theme-toggle__label{color:#172033!important}
@media(max-width:767px){
  body:not(.ct-home-guest) .kb-theme-toggle{
    left:auto!important;
    right:max(12px,env(safe-area-inset-right))!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
    transform:none!important;
  }
}
