
/* DataMind horizontal theme switcher v20260624-0334
   Airy horizontal segmented pill, consistent in light/dark/system. */
.header .quick-actions #themeWidget.theme-widget,
.header #themeWidget.theme-widget{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  isolation:isolate!important;
  z-index:10020!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",system-ui,sans-serif!important;
}
.header #themeToggle.icon-btn{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  border:1px solid rgba(148,163,184,.26)!important;
  background:rgba(15,23,42,.44)!important;
  color:#e5eefc!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(14px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
  cursor:pointer!important;
}
html.theme-light .header #themeToggle.icon-btn,
html.light-mode .header #themeToggle.icon-btn,
html[data-theme="light"] .header #themeToggle.icon-btn{
  background:rgba(255,255,255,.82)!important;
  color:#1f2937!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 10px 24px rgba(15,23,42,.08)!important;
}
.header #themeToggle.icon-btn svg{
  width:17px!important;
  height:17px!important;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:1.8!important;
  pointer-events:none!important;
}
html.theme-dark .header #themeToggle .theme-icon-sun,
html.dark .header #themeToggle .theme-icon-sun,
html[data-theme="dark"] .header #themeToggle .theme-icon-sun{display:none!important;}
html.theme-dark .header #themeToggle .theme-icon-moon,
html.dark .header #themeToggle .theme-icon-moon,
html[data-theme="dark"] .header #themeToggle .theme-icon-moon{display:block!important;}
html.theme-light .header #themeToggle .theme-icon-moon,
html.light-mode .header #themeToggle .theme-icon-moon,
html[data-theme="light"] .header #themeToggle .theme-icon-moon{display:none!important;}
html.theme-light .header #themeToggle .theme-icon-sun,
html.light-mode .header #themeToggle .theme-icon-sun,
html[data-theme="light"] .header #themeToggle .theme-icon-sun{display:block!important;}

/* Horizontal segmented popover */
.header #themeMenu.theme-menu{
  position:absolute!important;
  top:calc(100% + 13px)!important;
  right:-2px!important;
  left:auto!important;
  width:292px!important;
  min-width:292px!important;
  max-width:292px!important;
  height:48px!important;
  min-height:48px!important;
  padding:5px!important;
  display:none!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:4px!important;
  border-radius:999px!important;
  border:1px solid rgba(148,163,184,.20)!important;
  background:rgba(15,23,42,.78)!important;
  color:#e5eefc!important;
  box-shadow:0 18px 52px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(22px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(160%)!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  z-index:10080!important;
  overflow:hidden!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",system-ui,sans-serif!important;
}
.header #themeWidget.open > #themeMenu.theme-menu,
.header #themeWidget:focus-within > #themeMenu.theme-menu{
  display:flex!important;
}
html.theme-light .header #themeMenu.theme-menu,
html.light-mode .header #themeMenu.theme-menu,
html[data-theme="light"] .header #themeMenu.theme-menu{
  background:rgba(255,255,255,.84)!important;
  color:#1f2937!important;
  border-color:rgba(15,23,42,.10)!important;
  box-shadow:0 18px 52px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
.header #themeMenu.theme-menu .theme-option,
.header #themeMenu.theme-menu button.theme-option{
  appearance:none!important;
  -webkit-appearance:none!important;
  flex:1 1 0!important;
  width:auto!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 13px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#cbd5e1!important;
  text-align:center!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",system-ui,sans-serif!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:620!important;
  letter-spacing:-.01em!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
.header #themeMenu.theme-menu .theme-option span:first-child{
  color:inherit!important;
  font:inherit!important;
  line-height:1!important;
}
.header #themeMenu.theme-menu .theme-option .to-check{
  display:none!important;
}
.header #themeMenu.theme-menu .theme-option:hover{
  background:rgba(255,255,255,.08)!important;
  color:#ffffff!important;
}
.header #themeMenu.theme-menu .theme-option.active{
  background:linear-gradient(135deg,rgba(96,165,250,.34),rgba(14,165,233,.20))!important;
  color:#ffffff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 20px rgba(37,99,235,.18)!important;
}
html.theme-light .header #themeMenu.theme-menu .theme-option,
html.light-mode .header #themeMenu.theme-menu .theme-option,
html[data-theme="light"] .header #themeMenu.theme-menu .theme-option{
  color:#475467!important;
}
html.theme-light .header #themeMenu.theme-menu .theme-option:hover,
html.light-mode .header #themeMenu.theme-menu .theme-option:hover,
html[data-theme="light"] .header #themeMenu.theme-menu .theme-option:hover{
  background:rgba(37,99,235,.07)!important;
  color:#1d4ed8!important;
}
html.theme-light .header #themeMenu.theme-menu .theme-option.active,
html.light-mode .header #themeMenu.theme-menu .theme-option.active,
html[data-theme="light"] .header #themeMenu.theme-menu .theme-option.active{
  background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;
  color:#ffffff!important;
  box-shadow:0 9px 22px rgba(37,99,235,.22),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
@media(max-width:720px){
  .header #themeMenu.theme-menu{
    right:-92px!important;
    width:268px!important;
    min-width:268px!important;
    max-width:268px!important;
  }
  .header #themeMenu.theme-menu .theme-option{font-size:12.5px!important;padding:0 10px!important;}
}
