.theme-switcher-slot {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1000;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #9aa4b2;
  padding: 5px 10px;
  min-height: 32px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #d6dde8;
  color: #334155;
  cursor: pointer;
}

.theme-pill.disabled {
  opacity: .8;
}

.theme-pill-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.75);
}

.theme-pill-label {
  font-weight: 700;
}

.theme-slider-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 2px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 28px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b6c3d3;
  transition: background .2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  overflow: hidden;
}

.theme-switch-track:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease, background .2s ease;
}

.theme-switch input:checked + .theme-switch-track {
  background: #1f2937;
}

.theme-switch input:checked + .theme-switch-track:before {
  transform: translateX(36px);
  background: #f8fafc;
}

.theme-switch-icon {
  position: relative;
  z-index: 2;
  font-size: 12px;
  line-height: 1;
}

.theme-switch-icon-sun {
  color: #f59e0b;
}

.theme-switch-icon-moon {
  color: #dbeafe;
}

@media (max-width: 991.98px) {
  .theme-switcher-slot {
    position: static;
    margin-top: 6px;
    margin-left: auto;
    width: fit-content;
  }

  .theme-pill {
    min-height: 34px;
    padding: 6px 10px;
  }

  .theme-switch {
    width: 68px;
    height: 30px;
  }

  .theme-switch-track:before {
    width: 26px;
    height: 26px;
  }

  .theme-switch input:checked + .theme-switch-track:before {
    transform: translateX(38px);
  }
}

