/* Nimbus UI “Surface Tension” liquid toggle, adapted from the supplied 21st
   component by guglielmogiannattasio.it. Scoped to preserve the host controls. */
#theme-toggle.liquid-toggle {
  --lt-tint: rgba(255, 255, 255, .18);
  --lt-rim: rgba(255, 255, 255, .8);
  --lt-icon-off: #ffe36f;
  --lt-icon-on: #0b132b;
  position: relative;
  display: inline-block !important;
  flex: 0 0 92px;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
  isolation: isolate;
  vertical-align: middle;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: none !important;
}
#theme-toggle.liquid-toggle::before,
#theme-toggle.liquid-toggle::after { content: none !important; }
#theme-toggle.liquid-toggle[data-lt-tone="dark"] {
  --lt-tint: rgba(10, 18, 40, .32);
  --lt-rim: rgba(255, 255, 255, .3);
  --lt-icon-off: #ffe36f;
  --lt-icon-on: #eaf4ff;
}
#theme-toggle.liquid-toggle:focus-visible {
  outline: 2px solid #cdefff;
  outline-offset: 5px;
}
#theme-toggle.liquid-toggle:disabled { opacity: .45; cursor: not-allowed; }
#theme-toggle.liquid-toggle > :not(#theme-status) { pointer-events: none; }
#theme-toggle.liquid-toggle .lt-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background: var(--lt-tint);
  backdrop-filter: blur(10px) saturate(1.2) brightness(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.2) brightness(1.06);
  box-shadow: inset 0 2px 5px rgba(0, 40, 90, .16),
    inset 0 -1px 1px var(--lt-rim),
    inset 0 0 0 1px rgba(255, 255, 255, .24),
    0 1px 0 rgba(255, 255, 255, .45),
    0 10px 24px -14px rgba(0, 40, 90, .5);
}
#theme-toggle.liquid-toggle[data-lt-tone="dark"] .lt-glass {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35),
    inset 0 -1px 1px var(--lt-rim),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 10px 24px -14px rgba(0, 0, 0, .7);
}
#theme-toggle.liquid-toggle .lt-water {
  position: absolute;
  z-index: 1;
  display: block;
  max-width: none;
  pointer-events: none;
}
#theme-toggle.liquid-toggle .lt-fill,
#theme-toggle.liquid-toggle .lt-knob,
#theme-toggle.liquid-toggle .lt-satellite,
#theme-toggle.liquid-toggle .lt-ripple-layer { display: none; }
#theme-toggle.liquid-toggle[data-lt-gl="off"] .lt-water { display: none; }
#theme-toggle.liquid-toggle[data-lt-gl="off"] .lt-fill,
#theme-toggle.liquid-toggle[data-lt-gl="off"] .lt-knob,
#theme-toggle.liquid-toggle[data-lt-gl="off"] .lt-satellite,
#theme-toggle.liquid-toggle[data-lt-gl="off"] .lt-ripple-layer { display: block; }
#theme-toggle.liquid-toggle .lt-fill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, #fff0a5, #e5a32f);
  opacity: .85;
}
#theme-toggle.liquid-toggle .lt-knob,
#theme-toggle.liquid-toggle .lt-satellite {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 999px;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .95), transparent 60%),
    rgba(255, 239, 177, .72);
  box-shadow: inset 0 1px 1px #fff,
    inset 0 -2px 6px rgba(217, 154, 36, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    0 4px 10px -3px rgba(0, 60, 130, .45);
  transform-origin: center;
}
#theme-toggle.liquid-toggle[data-lt-tone="dark"] .lt-knob,
#theme-toggle.liquid-toggle[data-lt-tone="dark"] .lt-satellite {
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .55), transparent 60%),
    rgba(120, 180, 240, .5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7),
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    0 4px 10px -3px rgba(0, 0, 0, .6);
}
#theme-toggle.liquid-toggle[data-lt-tone="dark"] .lt-fill {
  background: linear-gradient(180deg, #2eb8ff, #0060cc);
}
#theme-toggle.liquid-toggle .lt-ripple-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
}
#theme-toggle.liquid-toggle .lt-ripple {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgba(231, 250, 255, .95);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(255, 255, 255, .25);
}
#theme-toggle.liquid-toggle .lt-icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}
#theme-toggle.liquid-toggle .lt-icon > span {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: center;
}
#theme-toggle.liquid-toggle .lt-icon-off { color: var(--lt-icon-off); }
#theme-toggle.liquid-toggle .lt-icon-on { color: var(--lt-icon-on); }
#theme-toggle.liquid-toggle .theme-sun,
#theme-toggle.liquid-toggle .theme-moon {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  transform: none !important;
  color: inherit;
  opacity: 1 !important;
  transition: none !important;
}
#theme-toggle.liquid-toggle .theme-sun {
  stroke-width: 1.7;
  filter: drop-shadow(0 0 3px rgba(255, 225, 105, .65));
}
#theme-toggle.liquid-toggle .theme-sun circle { fill: rgba(255, 227, 111, .22); }
#theme-toggle.liquid-toggle [hidden] { display: none !important; }
