.tt-switch{
  font-family:Inter,Arial,sans-serif;
  position:relative;display:inline-flex;align-items:center;
  cursor:pointer;border:none;background:transparent;padding:0;
}
.tt-track{
  width:52px;height:28px;border-radius:20px;background:#cdd5dd;position:relative;
  display:block;transition:background .25s;
}
.tt-track::after{
  content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;
  background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .25s;
}
[data-theme="dark"] .tt-track{background:#2c6f4e}
[data-theme="dark"] .tt-track::after{transform:translateX(24px);background:#f5f8fa}
.tt-dark .tt-track{background:#2c6f4e}
.tt-dark .tt-track::after{transform:translateX(24px)}