/* Restored theme toggle */
:root{
  --cct-accent: #ffb400;
  --cct-bg: rgba(18,18,20,.96);
  --cct-border: rgba(255,255,255,.08);
  --cct-shadow: 0 12px 34px rgba(0,0,0,.28);
}

#cloudcrewThemeToggle{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147482999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--cct-accent);
  background: var(--cct-bg);
  color: var(--cct-accent);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: var(--cct-shadow);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

#cloudcrewThemeToggle[hidden]{
  display: none !important;
}

#cloudcrewThemeToggle:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#cloudcrewThemeToggle .theme-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 22px;
  width: 22px;
  height: 22px;
  opacity: .45;
  transition: opacity .18s ease, transform .18s ease;
  user-select: none;
  pointer-events: none;
}

#cloudcrewThemeToggle[data-theme="light"] .theme-icon--sun,
#cloudcrewThemeToggle[data-theme="dark"] .theme-icon--moon{
  opacity: 1;
  transform: scale(1.04);
}

#cloudcrewThemeToggle[data-theme="light"] .theme-icon--moon,
#cloudcrewThemeToggle[data-theme="dark"] .theme-icon--sun{
  opacity: .45;
}

html.cloudcrew-cookie-banner-open #cloudcrewThemeToggle{
  bottom: 112px;
}

html.cloudcrew-cookie-modal-open #cloudcrewThemeToggle{
  display: none !important;
}

@media (max-width: 760px){
  #cloudcrewThemeToggle{
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  html.cloudcrew-cookie-banner-open #cloudcrewThemeToggle{
    bottom: 88px;
  }
}


/* v10: keep theme toggle stacked cleanly above cookie button on mobile */
@media (max-width: 760px){
  #cloudcrewThemeToggle{
    right: 16px;
    bottom: 86px;
  }
  html.cloudcrew-cookie-banner-open #cloudcrewThemeToggle{
    bottom: 146px;
  }
}


/* v12: theme toggle must never overlap cookie trigger on mobile */
#cloudcrewThemeToggle{
  touch-action: manipulation;
}

@media (max-width: 760px){
  #cloudcrewThemeToggle{
    right: 16px !important;
    bottom: 86px !important;
    z-index: 2147482999 !important;
  }
  html.cloudcrew-cookie-banner-open #cloudcrewThemeToggle{
    bottom: 146px !important;
  }
  html.cloudcrew-cookie-modal-open #cloudcrewThemeToggle{
    display: none !important;
  }
}
